From 5c1e8d1c2ee881ae16cf26d3e634cdd91f7e0efc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 13 Oct 2015 01:14:14 +0200 Subject: warning if stdalign or stdnoreturn are included without C11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/stdalign.h | 4 ++++ include/stdnoreturn.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'include') 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 #include +#if !defined(_SLIBC_SUPPRESS_WARNINGS) && !defined(__C11__) +# warning " 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 #include +#if !defined(_SLIBC_SUPPRESS_WARNINGS) && !defined(__C99__) +# warning " requires that C11 or newer revision is used." +#endif + /** -- cgit v1.2.3-70-g09d2