blob: dc37c6f3faa656f5ee507c293f63caadaadbd2ef [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris10a76e62022-06-08 13:31:52 -07007#ifndef _UAPI_LINUX_STDDEF_H
8#define _UAPI_LINUX_STDDEF_H
Christopher Ferris934ec942018-01-31 15:29:16 -08009#include <linux/compiler_types.h>
Christopher Ferris106b3a82016-08-24 12:15:38 -070010#ifndef __always_inline
11#define __always_inline inline
12#endif
Christopher Ferris0f795212024-01-17 14:17:28 -080013#define __struct_group(TAG,NAME,ATTRS,MEMBERS...) union { struct { MEMBERS } ATTRS; struct TAG { MEMBERS } ATTRS NAME; } ATTRS
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070014#ifdef __cplusplus
15#define __DECLARE_FLEX_ARRAY(T,member) T member[0]
16#else
Christopher Ferrisa4792612022-01-10 13:51:15 -080017#define __DECLARE_FLEX_ARRAY(TYPE,NAME) struct { struct { } __empty_ ##NAME; TYPE NAME[]; }
Christopher Ferris10a76e62022-06-08 13:31:52 -070018#endif
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070019#ifndef __counted_by
20#define __counted_by(m)
21#endif
Christopher Ferris7ac54f52024-08-07 21:07:12 +000022#ifndef __counted_by_le
23#define __counted_by_le(m)
24#endif
25#ifndef __counted_by_be
26#define __counted_by_be(m)
27#endif
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070028#endif