summaryrefslogtreecommitdiff
path: root/mainline/runtime/sdk/android/riscv64/include/bionic/libc/kernel/uapi/linux/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'mainline/runtime/sdk/android/riscv64/include/bionic/libc/kernel/uapi/linux/stddef.h')
-rw-r--r--mainline/runtime/sdk/android/riscv64/include/bionic/libc/kernel/uapi/linux/stddef.h33
1 files changed, 14 insertions, 19 deletions
diff --git a/mainline/runtime/sdk/android/riscv64/include/bionic/libc/kernel/uapi/linux/stddef.h b/mainline/runtime/sdk/android/riscv64/include/bionic/libc/kernel/uapi/linux/stddef.h
index 6bc6925f..aa3a6943 100644
--- a/mainline/runtime/sdk/android/riscv64/include/bionic/libc/kernel/uapi/linux/stddef.h
+++ b/mainline/runtime/sdk/android/riscv64/include/bionic/libc/kernel/uapi/linux/stddef.h
@@ -1,27 +1,22 @@
-/****************************************************************************
- ****************************************************************************
- ***
- *** This header was automatically generated from a Linux kernel header
- *** of the same name, to make information necessary for userspace to
- *** call into the kernel available to libc. It contains only constants,
- *** 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!
- ***
- ****************************************************************************
- ****************************************************************************/
+/*
+ * This file is auto-generated. Modifications will be lost.
+ *
+ * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
+ * for more information.
+ */
#ifndef _UAPI_LINUX_STDDEF_H
#define _UAPI_LINUX_STDDEF_H
#include <linux/compiler_types.h>
#ifndef __always_inline
#define __always_inline inline
#endif
-#define __struct_group(TAG,NAME,ATTRS,MEMBERS...) union { struct { MEMBERS } ATTRS; struct TAG { MEMBERS } ATTRS NAME; }
+#define __struct_group(TAG,NAME,ATTRS,MEMBERS...) union { struct { MEMBERS } ATTRS; struct TAG { MEMBERS } ATTRS NAME; } ATTRS
+#ifdef __cplusplus
+#define __DECLARE_FLEX_ARRAY(T,member) T member[0]
+#else
#define __DECLARE_FLEX_ARRAY(TYPE,NAME) struct { struct { } __empty_ ##NAME; TYPE NAME[]; }
#endif
+#ifndef __counted_by
+#define __counted_by(m)
+#endif
+#endif