diff options
author | Brent Cook <busterb@gmail.com> | 2018-03-22 21:11:46 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2018-03-22 21:11:46 -0500 |
commit | 7ffaf004153931ba77da7f6659feb1990f4ff760 (patch) | |
tree | 74f765ecbef68fd8eef6337d97f8f2de785adc7e | |
parent | 987aa6a084312be8501bdda42b0e5aab3b84d52a (diff) | |
download | portable-7ffaf004153931ba77da7f6659feb1990f4ff760.tar.gz portable-7ffaf004153931ba77da7f6659feb1990f4ff760.tar.bz2 portable-7ffaf004153931ba77da7f6659feb1990f4ff760.zip |
hide clock_gettime on win32
-rw-r--r-- | include/compat/time.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat/time.h b/include/compat/time.h index d43dfcb..117a441 100644 --- a/include/compat/time.h +++ b/include/compat/time.h | |||
@@ -30,10 +30,12 @@ time_t timegm(struct tm *tm); | |||
30 | #define CLOCK_REALTIME 0 | 30 | #define CLOCK_REALTIME 0 |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #ifndef _WIN32 | ||
33 | #ifndef HAVE_CLOCK_GETTIME | 34 | #ifndef HAVE_CLOCK_GETTIME |
34 | int | 35 | int |
35 | clock_gettime(clockid_t clock_id, struct timespec *tp); | 36 | clock_gettime(clockid_t clock_id, struct timespec *tp); |
36 | #endif | 37 | #endif |
38 | #endif | ||
37 | 39 | ||
38 | #ifndef timespecsub | 40 | #ifndef timespecsub |
39 | #define timespecsub(tsp, usp, vsp) \ | 41 | #define timespecsub(tsp, usp, vsp) \ |