Prepare v2023.10
[platform/kernel/u-boot.git] / include / linux / stddef.h
1 #ifndef _LINUX_STDDEF_H
2 #define _LINUX_STDDEF_H
3
4 #include <linux/compiler_types.h>
5
6 #undef NULL
7 #if defined(__cplusplus)
8 #define NULL 0
9 #else
10 #define NULL ((void *)0)
11 #endif
12
13 #ifndef _SIZE_T
14 #include <linux/types.h>
15 #endif
16
17 #undef offsetof
18 #define offsetof(TYPE, MEMBER)  __builtin_offsetof(TYPE, MEMBER)
19
20 #endif