3 //=============================================================================
7 * standard type definitions
9 * $Id: os_stddef.h 80826 2008-03-04 14:51:23Z wotte $
11 * @author Don Hinton <dhinton@dresystems.com>
12 * @author This code was originally in various places including ace/OS.h.
14 //=============================================================================
16 // From http://www.UNIX-systems.org/single_unix_specification/
18 #ifndef ACE_OS_INCLUDE_OS_STDDEF_H
19 #define ACE_OS_INCLUDE_OS_STDDEF_H
21 #include /**/ "ace/pre.h"
23 #include "ace/config-lite.h"
25 #if !defined (ACE_LACKS_PRAGMA_ONCE)
27 #endif /* ACE_LACKS_PRAGMA_ONCE */
29 #if !defined (ACE_LACKS_STDDEF_H)
30 # include /**/ <stddef.h>
31 #endif /* !ACE_LACKS_STDDEF_H */
33 // Place all additions (especially function declarations) within extern "C" {}
37 #endif /* __cplusplus */
39 //FUZZ: disable check_for_NULL
40 // NULL pointer constant
41 #if defined (ACE_LACKS_NULL)
43 # if defined(__cplusplus)
46 # define NULL ((void *)0)
48 #endif /* ACE_LACKS_NULL */
49 //FUZZ: enable check_for_NULL
52 Integer constant expression of type size_t, the value of which is the offset
53 in bytes to the structure member (member-designator), from the beginning of
56 #if defined (ACE_LACKS_OFFSETOF)
58 # define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
59 #endif /* ACE_LACKS_OFFSETOF */
61 // Signed integer type of the result of subtracting two pointers.
62 #if defined (ACE_LACKS_PTRDIFF_T)
63 # if !defined (ACE_PTRDIFF_T_TYPE)
64 # define ACE_PTRDIFF_T_TYPE unsigned long
65 # endif /* !ACE_PTRDIFF_T_TYPE */
66 typedef ACE_PTRDIFF_T_TYPE
ptrdiff_t;
67 #endif /* ACE_LACKS_PTRDIFF_T */
70 Integer type whose range of values can represent distinct wide-character
71 codes for all members of the largest character set specified among the
72 locales supported by the compilation environment: the null character has
73 the code value 0 and each member of the portable character set has a code
74 value equal to its value when used as the lone character in an integer
77 #if defined (ACE_LACKS_WCHAR_T)
78 # if !defined (ACE_WCHAR_T_TYPE)
79 # define ACE_WCHAR_T_TYPE long;
80 # endif /* !ACE_WCHAR_T_TYPE */
81 typedef ACE_WCHAR_T_TYPE
wchar_t;
82 #endif /* ACE_LACKS_WCHAR_T */
84 // Unsigned integer type of the result of the sizeof operator.
85 #if defined (ACE_LACKS_SIZE_T)
86 # if !defined (ACE_SIZE_T_TYPE)
87 # define ACE_SIZE_T_TYPE unsigned int;
88 # endif /* !ACE_SIZE_T_TYPE */
89 typedef ACE_SIZE_T_TYPE
size_t;
90 #endif /* ACE_LACKS_SIZE_T */
94 #endif /* __cplusplus */
96 #include /**/ "ace/post.h"
97 #endif /* ACE_OS_INCLUDE_OS_STDDEF_H */