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

cleanup namespace in sys/time.h

上级 f2374ed8
......@@ -17,10 +17,7 @@ extern "C" {
int gettimeofday (struct timeval *, void *);
/* extensions */
int settimeofday (const struct timeval *, void *);
int adjtime (const struct timeval *, struct timeval *);
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
#define ITIMER_REAL 0
#define ITIMER_VIRTUAL 1
......@@ -36,7 +33,11 @@ int getitimer (int, struct itimerval *);
int setitimer (int, const struct itimerval *, struct itimerval *);
int utimes (const char *, const struct timeval [2]);
#endif
#ifdef _GNU_SOURCE
int settimeofday (const struct timeval *, void *);
int adjtime (const struct timeval *, struct timeval *);
struct timezone {
int tz_minuteswest;
int tz_dsttime;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册