diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-10-02 23:27:59 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-10-02 23:27:59 +0000 |
commit | 2935036dd0ac4e298a0ae88451c2e9aa8d1eb8e9 (patch) | |
tree | c4e4e1bfefe59d744064c8142548b10af3bb5974 | |
parent | 399688377963955d60b2dd7e67f609439fe58459 (diff) | |
download | netpbm-mirror-2935036dd0ac4e298a0ae88451c2e9aa8d1eb8e9.tar.gz netpbm-mirror-2935036dd0ac4e298a0ae88451c2e9aa8d1eb8e9.tar.xz netpbm-mirror-2935036dd0ac4e298a0ae88451c2e9aa8d1eb8e9.zip |
Recognize GCC 2.95.3 has stdbool
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2833 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | lib/util/pm_c_util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/util/pm_c_util.h b/lib/util/pm_c_util.h index 01a07657..4890da05 100644 --- a/lib/util/pm_c_util.h +++ b/lib/util/pm_c_util.h @@ -53,9 +53,11 @@ #else /* The test for __STDC__ is paranoid. It is there just in case some nonstandard compiler defines __STDC_VERSION__ in an arbitrary manner. + + We know GCC 2.95.3 has stdbool; not sure about earlier GCC 2. */ - #if ( defined(__GNUC__) && (__GNUC__ >= 3) ) || \ - ( defined(__STDC__) && (__STDC__ ==1) && \ + #if ( defined(__GNUC__) && (__GNUC__ >= 2) ) || \ + ( defined(__STDC__) && (__STDC__ == 1) && \ defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) ) #include <stdbool.h> #else |