HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0777022
)
Define _GNU_SOURCE for strptime prototype from glibc. Use
author
Kevin Ryde
<user42@zip.com.au>
Sat, 13 Mar 2004 23:32:16 +0000
(23:32 +0000)
committer
Kevin 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
patch
|
blob
|
blame
|
history
diff --git
a/libguile/stime.c
b/libguile/stime.c
index
0b70920
..
be82ab6
100644
(file)
--- a/
libguile/stime.c
+++ b/
libguile/stime.c
@@
-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
-#if
def MISSING_STRPTIME_DECL
+#if
! HAVE_DECL_STRPTIME
extern char *strptime ();
#endif