提交 cf254c32 编写于 作者: R Rich Felker

fix feature test macros in time.h

stime is not _XOPEN_SOURCE, and some functions were missing with
_BSD_SOURCE..
上级 23be72ae
...@@ -100,7 +100,7 @@ int timer_getoverrun (timer_t); ...@@ -100,7 +100,7 @@ int timer_getoverrun (timer_t);
#endif #endif
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
char *strptime (const char *, const char *, struct tm *); char *strptime (const char *, const char *, struct tm *);
extern int daylight; extern int daylight;
extern long timezone; extern long timezone;
...@@ -110,11 +110,8 @@ struct tm *getdate (const char *); ...@@ -110,11 +110,8 @@ struct tm *getdate (const char *);
#endif #endif
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
int stime(time_t *); int stime(time_t *);
#endif
#if defined(_GNU_SOURCE)
time_t timegm(struct tm *); time_t timegm(struct tm *);
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册