Changeset 40943 in vbox
- Timestamp:
- Apr 16, 2012 3:26:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/types.h
r40942 r40943 126 126 # define __inline __inline 127 127 # endif 128 # i f LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)129 # undef __KERNEL__130 /* *131 * linux 3.4-rc3 unconditionally defines NULL as ((void *)0)132 * do n't let it break our build128 # include <linux/types.h> 129 # include <linux/stddef.h> 130 /* 131 * Starting with 3.4, <linux/stddef.h> defines NULL as '((void*)0)' which 132 * does not work for C++ code. 133 133 */ 134 # include <linux/stddef.h>135 # define __KERNEL__136 # include <linux/types.h>134 # undef NULL 135 # if defined(__cplusplus) 136 # define NULL 0 137 137 # else 138 # include <linux/types.h> 139 # include <linux/stddef.h> 138 # define NULL ((void *)0) 140 139 # endif 141 140 # undef uintptr_t
Note:
See TracChangeset
for help on using the changeset viewer.