about summary refs log tree commit diff
path: root/lib/util
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-12-25 17:36:41 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-12-25 17:36:41 +0000
commit9df60b4c472359d6d1a92fd62dd74feb002f14fc (patch)
tree9ea46580cac4aa19cbb07881b98d52200f5b9c36 /lib/util
parentba0c660b33b95c870f275466af5e6342759e621a (diff)
downloadnetpbm-mirror-9df60b4c472359d6d1a92fd62dd74feb002f14fc.tar.gz
netpbm-mirror-9df60b4c472359d6d1a92fd62dd74feb002f14fc.tar.xz
netpbm-mirror-9df60b4c472359d6d1a92fd62dd74feb002f14fc.zip
Copy Development as new Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2861 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/nstring.c1
-rw-r--r--lib/util/pm_c_util.h6
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/util/nstring.c b/lib/util/nstring.c
index 5644d3b9..6c28095f 100644
--- a/lib/util/nstring.c
+++ b/lib/util/nstring.c
@@ -113,6 +113,7 @@
  */
 
 
+#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */
 #define _XOPEN_SOURCE 500  /* Make sure strdup() is in string.h */
 #define _BSD_SOURCE  /* Make sure strdup() is in string.h */
 #define _GNU_SOURCE
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