diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/stddef.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'include/linux/stddef.h')
-rw-r--r-- | include/linux/stddef.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/stddef.h b/include/linux/stddef.h index f4aec0e75c3..6a40c76bdcf 100644 --- a/include/linux/stddef.h +++ b/include/linux/stddef.h | |||
@@ -1,11 +1,16 @@ | |||
1 | #ifndef _LINUX_STDDEF_H | 1 | #ifndef _LINUX_STDDEF_H |
2 | #define _LINUX_STDDEF_H | 2 | #define _LINUX_STDDEF_H |
3 | 3 | ||
4 | #include <uapi/linux/stddef.h> | 4 | #include <linux/compiler.h> |
5 | |||
6 | 5 | ||
7 | #undef NULL | 6 | #undef NULL |
7 | #if defined(__cplusplus) | ||
8 | #define NULL 0 | ||
9 | #else | ||
8 | #define NULL ((void *)0) | 10 | #define NULL ((void *)0) |
11 | #endif | ||
12 | |||
13 | #ifdef __KERNEL__ | ||
9 | 14 | ||
10 | enum { | 15 | enum { |
11 | false = 0, | 16 | false = 0, |
@@ -18,4 +23,6 @@ enum { | |||
18 | #else | 23 | #else |
19 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | 24 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
20 | #endif | 25 | #endif |
26 | #endif /* __KERNEL__ */ | ||
27 | |||
21 | #endif | 28 | #endif |