aboutsummaryrefslogtreecommitdiff
path: root/original/uapi/linux/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'original/uapi/linux/stddef.h')
-rw-r--r--original/uapi/linux/stddef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/original/uapi/linux/stddef.h b/original/uapi/linux/stddef.h
index 7837ba4..5c6c426 100644
--- a/original/uapi/linux/stddef.h
+++ b/original/uapi/linux/stddef.h
@@ -29,6 +29,11 @@
struct TAG { MEMBERS } ATTRS NAME; \
}
+#ifdef __cplusplus
+/* sizeof(struct{}) is 1 in C++, not 0, can't use C version of the macro. */
+#define __DECLARE_FLEX_ARRAY(T, member) \
+ T member[0]
+#else
/**
* __DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union
*
@@ -45,3 +50,9 @@
TYPE NAME[]; \
}
#endif
+
+#ifndef __counted_by
+#define __counted_by(m)
+#endif
+
+#endif /* _UAPI_LINUX_STDDEF_H */