diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-13 01:14:14 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-13 01:14:14 +0200 |
commit | 5c1e8d1c2ee881ae16cf26d3e634cdd91f7e0efc (patch) | |
tree | 8b1f8dffd883896e4183ccd32bacc892a1982b3e /include/stdalign.h | |
parent | guard 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) | |
download | slibc-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.h | 4 |
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 + /** |