Changeset 22457 in vbox
- Timestamp:
- Aug 26, 2009 8:49:15 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/types.h
r22398 r22457 67 67 # error "offsetof is not defined..." 68 68 # endif 69 70 # elif defined(RT_OS_FREEBSD) && HC_ARCH_BITS == 64 && defined(RT_ARCH_X86) 71 /* 72 * Kludge for compiling 32-bit code on a 64-bit FreeBSD: 73 * FreeBSD declares uint64_t and int64_t wrong (long unsigned and long int 74 * though they need to be long long unsigned and long long int). These 75 * defines conflict with our decleration in stdint.h. Adding the defines 76 * below omits the definitions in the system header. 77 */ 78 # include <stddef.h> 79 # define _UINT64_T_DECLARED 80 # define _INT64_T_DECLARED 81 # include <sys/types.h> 69 82 70 83 # elif defined(RT_OS_LINUX) && defined(__KERNEL__) … … 95 108 # else 96 109 # include <stddef.h> 97 # if defined(RT_OS_FREEBSD) && (HC_ARCH_BITS == 64) && defined(RT_ARCH_X86)98 /* Compiling on a 64bit machine in 32bit mode. FreeBSD declares99 * uint64_t and int64_t wrong (long unsigned and long int100 * though they need to be long long unsigned and long long int)101 *102 * These defines conflict with our decleration in stdint.h.103 * Adding the defines below omits the definitions in the system header.104 */105 # define _UINT64_T_DECLARED106 # define _INT64_T_DECLARED107 # endif108 110 # include <sys/types.h> 109 111 # endif … … 115 117 # endif 116 118 117 #else /* no crt */119 #else /* no crt */ 118 120 # include <iprt/nocrt/compiler/compiler.h> 119 121 #endif /* no crt */
Note:
See TracChangeset
for help on using the changeset viewer.