stddef.h revision 264496
1218887Sdim/*- 2218887Sdim * Copyright (c) 1990, 1993 3218887Sdim * The Regents of the University of California. All rights reserved. 4218887Sdim * 5218887Sdim * Redistribution and use in source and binary forms, with or without 6218887Sdim * modification, are permitted provided that the following conditions 7218887Sdim * are met: 8218887Sdim * 1. Redistributions of source code must retain the above copyright 9218887Sdim * notice, this list of conditions and the following disclaimer. 10218887Sdim * 2. Redistributions in binary form must reproduce the above copyright 11218887Sdim * notice, this list of conditions and the following disclaimer in the 12218887Sdim * documentation and/or other materials provided with the distribution. 13218887Sdim * 3. Neither the name of the University nor the names of its contributors 14221345Sdim * may be used to endorse or promote products derived from this software 15249423Sdim * without specific prior written permission. 16221345Sdim * 17221345Sdim * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 18221345Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19218887Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20218887Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21218887Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22218887Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23218887Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24218887Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25221345Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26218887Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27221345Sdim * SUCH DAMAGE. 28218887Sdim * 29218887Sdim * @(#)stddef.h 8.1 (Berkeley) 6/2/93 30218887Sdim * 31218887Sdim * $FreeBSD: stable/10/include/stddef.h 264496 2014-04-15 09:41:52Z tijl $ 32221345Sdim */ 33234353Sdim 34234353Sdim#ifndef _STDDEF_H_ 35234353Sdim#define _STDDEF_H_ 36234353Sdim 37218887Sdim#include <sys/cdefs.h> 38218887Sdim#include <sys/_null.h> 39218887Sdim#include <sys/_types.h> 40263508Sdim 41263508Sdimtypedef __ptrdiff_t ptrdiff_t; 42218887Sdim 43218887Sdim#if __BSD_VISIBLE 44263508Sdim#ifndef _RUNE_T_DECLARED 45263508Sdimtypedef __rune_t rune_t; 46218887Sdim#define _RUNE_T_DECLARED 47263508Sdim#endif 48263508Sdim#endif 49218887Sdim 50234353Sdim#ifndef _SIZE_T_DECLARED 51234353Sdimtypedef __size_t size_t; 52218887Sdim#define _SIZE_T_DECLARED 53218887Sdim#endif 54218887Sdim 55218887Sdim#ifndef __cplusplus 56218887Sdim#ifndef _WCHAR_T_DECLARED 57218887Sdimtypedef ___wchar_t wchar_t; 58218887Sdim#define _WCHAR_T_DECLARED 59243830Sdim#endif 60218887Sdim#endif 61218887Sdim 62218887Sdim#define offsetof(type, member) __offsetof(type, member) 63218887Sdim 64218887Sdim#endif /* _STDDEF_H_ */ 65249423Sdim