From 60b21409c3edc2c69b54370ac32cc5bf013d90c1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 13 Oct 2015 02:46:39 +0200 Subject: c revision warnings for stdarg.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/stdarg.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/stdarg.h b/include/stdarg.h index bc07813..9a8fb99 100644 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -22,6 +22,14 @@ #include #include +#if !defined(_SLIBC_SUPPRESS_WARNINGS) +# if !defined(__C89__) +# warning " requires that C89 or newer revision is used." +# elif !defined(__C99__) +# warning "'va_copy' was introduced to in C99." +# endif +#endif + #include -- cgit v1.2.3-70-g09d2