diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-10-16 18:45:24 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-10-16 18:45:24 +0000 |
commit | 5eceb3958ee6cb42d57d4fe52dd76fb03b178edf (patch) | |
tree | fcddcedf0dc6b3aab54a8f7e85d619e574aa0e11 /newlib/libc/posix/engine.c | |
parent | 71c13b96338eeb7021c211c1819cba700e85b61c (diff) | |
download | cygnal-5eceb3958ee6cb42d57d4fe52dd76fb03b178edf.tar.gz cygnal-5eceb3958ee6cb42d57d4fe52dd76fb03b178edf.tar.bz2 cygnal-5eceb3958ee6cb42d57d4fe52dd76fb03b178edf.zip |
* libc/include/sys/features.h (__GNUC_PREREQ): Define. Use
throughout in place of explicit GNUC version checks.
* libc/include/_ansi.h (_NOINLINE): Define.
(_NOINLINE_STATIC): Define.
* libc/stdio/vfprintf.c (__sbprintf): Define _NOINLINE_STATIC.
Diffstat (limited to 'newlib/libc/posix/engine.c')
-rw-r--r-- | newlib/libc/posix/engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/posix/engine.c b/newlib/libc/posix/engine.c index 73ce45c11..c80834a0c 100644 --- a/newlib/libc/posix/engine.c +++ b/newlib/libc/posix/engine.c @@ -34,6 +34,7 @@ */ #include <sys/cdefs.h> +#include <_ansi.h> /* * The matching engine and friends. This file is #included by regexec.c @@ -364,8 +365,7 @@ sopno stopst; char *ssp; /* start of string matched by subsubRE */ char *sep; /* end of string matched by subsubRE */ char *oldssp; /* previous ssp */ -#if defined (__GNUC__) && \ - ((__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4) +#if __GNUC_PREREQ (4, 6) /* dp is only used for assertion testing which, for some reason, is not recognized as usage. */ #pragma GCC diagnostic ignored "-Wunused-but-set-variable" |