aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/linux-headers/linux/stddef.h
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-11-11 02:21:37 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-11-11 02:40:39 +0300
commitc9eb66546bc5c72ff6a4424f5c73ada67d0aeaa8 (patch)
tree4a18f83f5979766f6a360805a97500e9b2beeb75 /contrib/libs/linux-headers/linux/stddef.h
parent638336990198a7f36d43cfd21a42b25d9dcb6efc (diff)
downloadydb-c9eb66546bc5c72ff6a4424f5c73ada67d0aeaa8.tar.gz
Update contrib/libs/linux-headers to 6.5.9
Diffstat (limited to 'contrib/libs/linux-headers/linux/stddef.h')
-rw-r--r--contrib/libs/linux-headers/linux/stddef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/libs/linux-headers/linux/stddef.h b/contrib/libs/linux-headers/linux/stddef.h
index bb6ea517ef..b3d4a9c170 100644
--- a/contrib/libs/linux-headers/linux/stddef.h
+++ b/contrib/libs/linux-headers/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 /* _LINUX_STDDEF_H */