aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--include/stdalign.h4
-rw-r--r--include/stdnoreturn.h4
2 files changed, 8 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
+
/**
diff --git a/include/stdnoreturn.h b/include/stdnoreturn.h
index 3260cf2..59e2ceb 100644
--- a/include/stdnoreturn.h
+++ b/include/stdnoreturn.h
@@ -20,6 +20,10 @@
#include <slibc/version.h>
#include <slibc/features.h>
+#if !defined(_SLIBC_SUPPRESS_WARNINGS) && !defined(__C99__)
+# warning "<stdnoreturn.h> requires that C11 or newer revision is used."
+#endif
+
/**