aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdalign.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 01:14:14 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 01:14:14 +0200
commit5c1e8d1c2ee881ae16cf26d3e634cdd91f7e0efc (patch)
tree8b1f8dffd883896e4183ccd32bacc892a1982b3e /include/stdalign.h
parentguard stdbool.h with __bool_true_false_are_defined rather than _STDBOOL_H to let the macros to be undefined, and then redefined by including stdboo... (diff)
downloadslibc-5c1e8d1c2ee881ae16cf26d3e634cdd91f7e0efc.tar.gz
slibc-5c1e8d1c2ee881ae16cf26d3e634cdd91f7e0efc.tar.bz2
slibc-5c1e8d1c2ee881ae16cf26d3e634cdd91f7e0efc.tar.xz
warning if stdalign or stdnoreturn are included without C11
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include/stdalign.h')
-rw-r--r--include/stdalign.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stdalign.h b/include/stdalign.h
index 905b963..89aca73 100644
--- a/include/stdalign.h
+++ b/include/stdalign.h
@@ -20,6 +20,10 @@
#include <slibc/version.h>
#include <slibc/features.h>
+#if !defined(_SLIBC_SUPPRESS_WARNINGS) && !defined(__C11__)
+# warning "<stdalign.h> requires that C11 or newer revision is used."
+#endif
+
/**