stddef.h

00001 /*  wcecompat: Windows CE C Runtime Library "compatibility" library.
00002  *
00003  *  Copyright (C) 2001-2002 Essemer Pty Ltd.  All rights reserved.
00004  *  http://www.essemer.com.au/
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Lesser General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Lesser General Public
00017  *  License along with this library; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 
00022 #ifndef __wcecompat__STDDEF_H__
00023 #define __wcecompat__STDDEF_H__
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 /* Define _CRTAPI1 (for compatibility with the NT SDK) */
00030 #ifndef _CRTAPI1
00031 #if     _MSC_VER >= 800 && _M_IX86 >= 300
00032 #define _CRTAPI1 __cdecl
00033 #else
00034 #define _CRTAPI1
00035 #endif
00036 #endif
00037 
00038 /* Define _CRTAPI2 (for compatibility with the NT SDK) */
00039 #ifndef _CRTAPI2
00040 #if     _MSC_VER >= 800 && _M_IX86 >= 300
00041 #define _CRTAPI2 __cdecl
00042 #else
00043 #define _CRTAPI2
00044 #endif
00045 #endif
00046 
00047 #ifndef _CRTIMP
00048 #define _CRTIMP
00049 #endif
00050 
00051 #ifndef _SIZE_T_DEFINED
00052 typedef unsigned int size_t;
00053 #define _SIZE_T_DEFINED
00054 #endif
00055 
00056 #ifndef _WCHAR_T_DEFINED
00057 typedef unsigned short wchar_t;
00058 #define _WCHAR_T_DEFINED
00059 #endif
00060 
00061 #ifndef _WCTYPE_T_DEFINED
00062 typedef wchar_t wint_t;
00063 typedef wchar_t wctype_t;
00064 #define _WCTYPE_T_DEFINED
00065 #endif
00066 
00067 #ifndef _TIME_T_DEFINED
00068 typedef unsigned long  time_t;
00069 #define _TIME_T_DEFINED     /* avoid multiple def's of time_t */
00070 #endif
00071 
00072 #ifndef NULL
00073 #ifdef __cplusplus
00074 #define NULL    0
00075 #else
00076 #define NULL    ((void *)0)
00077 #endif
00078 #endif
00079 
00080 #define offsetof(s,m) ((size_t)&(((s*)0)->m))
00081 
00082 #ifdef __cplusplus
00083 }
00084 #endif
00085 
00086 #endif /* __wcecompat__STDDEF_H__ */

Generated on Mon Jun 5 10:20:45 2006 for Intelligence.kdevelop by  doxygen 1.4.6