00001 /*- 00002 * © Portions copyright (c) 2005 Nokia Corporation. All rights reserved. 00003 * Copyright (c) 1990, 1993 00004 * The Regents of the University of California. All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 1. Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * 2. Redistributions in binary form must reproduce the above copyright 00012 * notice, this list of conditions and the following disclaimer in the 00013 * documentation and/or other materials provided with the distribution. 00014 * 3. All advertising materials mentioning features or use of this software 00015 * must display the following acknowledgement: 00016 * This product includes software developed by the University of 00017 * California, Berkeley and its contributors. 00018 * 4. Neither the name of the University nor the names of its contributors 00019 * may be used to endorse or promote products derived from this software 00020 * without specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 00023 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00024 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00025 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00026 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00027 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00028 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00029 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00030 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00031 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00032 * SUCH DAMAGE. 00033 * 00034 * @(#)stddef.h 8.1 (Berkeley) 6/2/93 00035 * 00036 * $FreeBSD: src/include/stddef.h,v 1.10 2003/12/07 21:10:06 marcel Exp $ 00037 */ 00038 00039 #ifndef _STDDEF_H_ 00040 #define _STDDEF_H_ 00041 00042 #include <sys/cdefs.h> 00043 #include <sys/_null.h> 00044 #include <sys/_types.h> 00045 00046 typedef __ptrdiff_t ptrdiff_t; 00047 00048 #if __BSD_VISIBLE 00049 #ifndef _RUNE_T_DECLARED 00050 typedef __rune_t rune_t; 00051 #define _RUNE_T_DECLARED 00052 #endif 00053 #endif 00054 00055 #ifndef _SIZE_T_DECLARED 00056 typedef __size_t size_t; 00057 #define _SIZE_T_DECLARED 00058 #endif 00059 00060 #ifndef __SYMBIAN32__ 00061 #ifndef __cplusplus 00062 #ifndef _WCHAR_T_DECLARED 00063 typedef __wchar_t wchar_t; 00064 #define _WCHAR_T_DECLARED 00065 //_WCHAR_T_DECLARED 00066 #endif 00067 //__cplusplus 00068 #endif 00069 #else 00070 #if !defined _WCHAR_T_DECLARED && !defined __wchar_t_defined 00071 typedef unsigned short int wchar_t; 00072 #define _WCHAR_T_DECLARED 00073 //__wchar_t_defined 00074 #endif 00075 //__SYMBIAN32__ 00076 #endif 00077 00078 #define offsetof(type, member) __offsetof(type, member) 00079 00080 #endif /* _STDDEF_H_ */