Changeset 3625 in vbox for trunk/include
- Timestamp:
- Jul 16, 2007 2:29:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/types.h
r3549 r3625 30 30 #ifndef IPRT_NO_CRT 31 31 32 # if !defined(__DARWIN__) || !defined(KERNEL) /* Klugde for the darwin kernel. */ 33 # include <stddef.h> 34 # else /* DARWIN && KERNEL */ 32 # if defined(__DARWIN__) && defined(KERNEL) 33 /* 34 * Klugde for the darwin kernel: 35 * stddef.h is missing IIRC. 36 */ 35 37 # ifndef _PTRDIFF_T 36 38 # define _PTRDIFF_T 37 39 typedef __darwin_ptrdiff_t ptrdiff_t; 38 40 # endif 39 # endif /* DARWIN && KERNEL */ 40 41 # if defined(__LINUX__) && defined(__KERNEL__) 41 # include <sys/types.h> 42 43 # elif defined(__FREEBSD__) && defined(_KERNEL) 44 /* 45 * Kludge for the FreeBSD kernel: 46 * stddef.h and sys/types.h has sligtly different offsetof definitions 47 * when compiling in kernel mode. This is just to make GCC keep shut. 48 */ 49 # ifndef _STDDEF_H_ 50 # undef offsetof 51 # endif 52 # include <stddef.h> 53 # ifndef _SYS_TYPES_H_ 54 # undef offsetof 55 # endif 56 # include <sys/types.h> 57 # ifndef offsetof 58 # error "offsetof is not defined..." 59 # endif 60 61 # elif defined(__LINUX__) && defined(__KERNEL__) 42 62 /* 43 63 * Kludge for the linux kernel: … … 47 67 * We work around these issues here and nowhere else. 48 68 */ 69 # include <stddef.h> 49 70 # if defined(__cplusplus) 50 71 typedef bool _Bool; … … 58 79 # undef true 59 80 # undef bool 81 60 82 # else 83 # include <stddef.h> 61 84 # include <sys/types.h> 62 85 # endif … … 67 90 typedef intptr_t ssize_t; 68 91 # endif 92 69 93 #else /* no crt */ 70 94 # include <iprt/nocrt/compiler/gcc.h>
Note:
See TracChangeset
for help on using the changeset viewer.