Changeset 23525 in vbox for trunk/include/iprt
- Timestamp:
- Oct 3, 2009 5:50:45 PM (15 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/alloca.h
r11403 r23525 39 39 */ 40 40 #if defined(IN_RING0) \ 41 && (defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) )41 && (defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)) 42 42 /* ASSUMES GNU C */ 43 43 # define alloca(cb) __builtin_alloca(cb) -
trunk/include/iprt/stdarg.h
r8245 r23525 31 31 #define ___iprt_stdarg_h 32 32 33 #ifndef IPRT_NO_CRT 33 #if !defined(IPRT_NO_CRT) \ 34 && !(defined(RT_OS_FREEBSD) && defined(_KERNEL)) 35 34 36 # include <stdarg.h> 37 #elif defined(RT_OS_FREEBSD) && defined(_KERNEL) 38 # include <machine/stdarg.h> 35 39 #else 36 40 # include <iprt/types.h> -
trunk/include/iprt/stdint.h
r22655 r23525 38 38 */ 39 39 #if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) \ 40 && !(defined(RT_OS_FREEBSD) && defined(_KERNEL)) \ 40 41 && !defined(_MSC_VER) \ 41 42 && !defined(__IBMC__) \ … … 65 66 # define UINT32_C(Value) (Value ## U) 66 67 # endif /* 64-bit darwin kludge. */ 68 69 #elif defined(RT_OS_FREEBSD) && defined(_KERNEL) \ 70 71 # ifndef __STDC_CONSTANT_MACROS 72 # define __STDC_CONSTANT_MACROS 73 # endif 74 # ifndef __STDC_LIMIT_MACROS 75 # define __STDC_LIMIT_MACROS 76 # endif 77 # include <sys/stdint.h> 67 78 68 79 #else /* No system stdint.h */ -
trunk/include/iprt/string.h
r23507 r23525 38 38 # include <linux/string.h> 39 39 #elif defined(RT_OS_FREEBSD) && defined(_KERNEL) 40 /* 41 * Kludge for the FreeBSD kernel: 42 * Some of the string.h stuff clashes with sys/libkern.h, so just wrap 43 * it up while including string.h to keep things quiet. It's nothing 44 * important that's clashing, after all. 45 */ 46 # define strdup strdup_string_h 47 # include <string.h> 48 # undef strdup 40 # include <sys/libkern.h> 49 41 #elif defined(RT_OS_SOLARIS) && defined(_KERNEL) 50 42 /* … … 65 57 * IPRT instead of the operating environment. 66 58 */ 67 #if defined(RT_OS_DARWIN) && defined(KERNEL) 59 #if (defined(RT_OS_DARWIN) && defined(KERNEL)) \ 60 || (defined(RT_OS_FREEBSD) && defined(_KERNEL)) 68 61 RT_C_DECLS_BEGIN 69 62 void *memchr(const void *pv, int ch, size_t cb); -
trunk/include/iprt/types.h
r23481 r23525 59 59 # undef offsetof 60 60 # endif 61 # include <s tddef.h>61 # include <sys/stddef.h> 62 62 # ifndef _SYS_TYPES_H_ 63 63 # undef offsetof
Note:
See TracChangeset
for help on using the changeset viewer.