mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
Define _GNU_SOURCE for strptime prototype from glibc. Use
HAVE_DECL_STRPTIME for when to give own strptime prototype.
This commit is contained in:
parent
0777022d62
commit
3c61e80f1d
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define _GNU_SOURCE /* ask glibc for everything, in particular strptime */
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
#if HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -65,7 +67,7 @@ extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
||||||
# define tzname _tzname
|
# define tzname _tzname
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MISSING_STRPTIME_DECL
|
#if ! HAVE_DECL_STRPTIME
|
||||||
extern char *strptime ();
|
extern char *strptime ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue