Define _GNU_SOURCE for strptime prototype from glibc. Use
authorKevin Ryde <user42@zip.com.au>
Sat, 13 Mar 2004 23:32:16 +0000 (23:32 +0000)
committerKevin Ryde <user42@zip.com.au>
Sat, 13 Mar 2004 23:32:16 +0000 (23:32 +0000)
HAVE_DECL_STRPTIME for when to give own strptime prototype.

libguile/stime.c

index 0b70920..be82ab6 100644 (file)
@@ -18,6 +18,8 @@
 
 \f
 
+#define _GNU_SOURCE  /* ask glibc for everything, in particular strptime */
+
 #if HAVE_CONFIG_H
 #  include <config.h>
 #endif
@@ -65,7 +67,7 @@ extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
 # define tzname _tzname
 #endif
 
-#ifdef MISSING_STRPTIME_DECL
+#if ! HAVE_DECL_STRPTIME
 extern char *strptime ();
 #endif