xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/stddef.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1*8d67ca89SAndroid Build Coastguard Worker /*
2*8d67ca89SAndroid Build Coastguard Worker  * This file is auto-generated. Modifications will be lost.
3*8d67ca89SAndroid Build Coastguard Worker  *
4*8d67ca89SAndroid Build Coastguard Worker  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5*8d67ca89SAndroid Build Coastguard Worker  * for more information.
6*8d67ca89SAndroid Build Coastguard Worker  */
7*8d67ca89SAndroid Build Coastguard Worker #ifndef _UAPI_LINUX_STDDEF_H
8*8d67ca89SAndroid Build Coastguard Worker #define _UAPI_LINUX_STDDEF_H
9*8d67ca89SAndroid Build Coastguard Worker #include <linux/compiler_types.h>
10*8d67ca89SAndroid Build Coastguard Worker #ifndef __always_inline
11*8d67ca89SAndroid Build Coastguard Worker #define __always_inline inline
12*8d67ca89SAndroid Build Coastguard Worker #endif
13*8d67ca89SAndroid Build Coastguard Worker #define __struct_group(TAG,NAME,ATTRS,MEMBERS...) union { struct { MEMBERS } ATTRS; struct TAG { MEMBERS } ATTRS NAME; } ATTRS
14*8d67ca89SAndroid Build Coastguard Worker #ifdef __cplusplus
15*8d67ca89SAndroid Build Coastguard Worker #define __DECLARE_FLEX_ARRAY(T,member) T member[0]
16*8d67ca89SAndroid Build Coastguard Worker #else
17*8d67ca89SAndroid Build Coastguard Worker #define __DECLARE_FLEX_ARRAY(TYPE,NAME) struct { struct { } __empty_ ##NAME; TYPE NAME[]; }
18*8d67ca89SAndroid Build Coastguard Worker #endif
19*8d67ca89SAndroid Build Coastguard Worker #ifndef __counted_by
20*8d67ca89SAndroid Build Coastguard Worker #define __counted_by(m)
21*8d67ca89SAndroid Build Coastguard Worker #endif
22*8d67ca89SAndroid Build Coastguard Worker #ifndef __counted_by_le
23*8d67ca89SAndroid Build Coastguard Worker #define __counted_by_le(m)
24*8d67ca89SAndroid Build Coastguard Worker #endif
25*8d67ca89SAndroid Build Coastguard Worker #ifndef __counted_by_be
26*8d67ca89SAndroid Build Coastguard Worker #define __counted_by_be(m)
27*8d67ca89SAndroid Build Coastguard Worker #endif
28*8d67ca89SAndroid Build Coastguard Worker #endif
29