diff options
| author | Nick Kralevich <nnk@google.com> | 2012-02-28 13:36:31 -0800 |
|---|---|---|
| committer | Nick Kralevich <nnk@google.com> | 2012-02-28 14:04:57 -0800 |
| commit | ec37237d69289e2bb9836bfa0d071ab958234d00 (patch) | |
| tree | 54ec0eae52a5ff9a57274d1f21754555de4270ad /libc/kernel | |
| parent | 83c366cf093b068da38e24e4ae4525c015ddde20 (diff) | |
| download | bionic-ec37237d69289e2bb9836bfa0d071ab958234d00.zip bionic-ec37237d69289e2bb9836bfa0d071ab958234d00.tar.gz bionic-ec37237d69289e2bb9836bfa0d071ab958234d00.tar.bz2 | |
update stddef.h
Pull in an updated version of stddef.h from the linux kernel.
Pulled from upstream kernel at 891003abb0db6bfffd61b76ad0ed39bb7c3db8e1
This file was generated using the following command:
cd bionic/libc/kernel/
./tools/clean_header.py -u ../../../external/kernel-headers/original/linux/stddef.h
Change-Id: I6c29f3fa100c5368da41d0f0da39bc50fa668e9d
Diffstat (limited to 'libc/kernel')
| -rw-r--r-- | libc/kernel/common/linux/stddef.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/libc/kernel/common/linux/stddef.h b/libc/kernel/common/linux/stddef.h index 5412f47..cca408c 100644 --- a/libc/kernel/common/linux/stddef.h +++ b/libc/kernel/common/linux/stddef.h @@ -7,25 +7,24 @@ *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** **************************************************************************** ****************************************************************************/ #ifndef _LINUX_STDDEF_H #define _LINUX_STDDEF_H - #include <linux/compiler.h> - #undef NULL +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #endif - -#undef offsetof -#ifdef __compiler_offsetof -#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER) -#else -#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -#endif - #endif |
