diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-13 02:46:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-13 02:46:39 +0200 |
commit | 60b21409c3edc2c69b54370ac32cc5bf013d90c1 (patch) | |
tree | 98d866c502fb97472d96eeaab7c2afc4f6c61e95 | |
parent | info: member offsets (diff) | |
download | slibc-60b21409c3edc2c69b54370ac32cc5bf013d90c1.tar.gz slibc-60b21409c3edc2c69b54370ac32cc5bf013d90c1.tar.bz2 slibc-60b21409c3edc2c69b54370ac32cc5bf013d90c1.tar.xz |
c revision warnings for stdarg.h
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | include/stdarg.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <slibc/version.h> #include <slibc/features.h> +#if !defined(_SLIBC_SUPPRESS_WARNINGS) +# if !defined(__C89__) +# warning "<stdargs.h> requires that C89 or newer revision is used." +# elif !defined(__C99__) +# warning "'va_copy' was introduced to <stdargs.h> in C99." +# endif +#endif + #include <bits/stdarg.h> |