hide clock_gettime definition on WIN32

This commit is contained in:
Brent Cook 2018-11-16 05:05:15 -06:00 committed by Brent Cook
parent 0829e7f654
commit 4f1c9507b6

View File

@ -33,6 +33,7 @@ time_t timegm(struct tm *tm);
#define CLOCK_REALTIME 0 #define CLOCK_REALTIME 0
#endif #endif
#ifndef _WIN32
#ifndef HAVE_CLOCK_GETTIME #ifndef HAVE_CLOCK_GETTIME
typedef int clockid_t; typedef int clockid_t;
int clock_gettime(clockid_t clock_id, struct timespec *tp); int clock_gettime(clockid_t clock_id, struct timespec *tp);
@ -49,5 +50,6 @@ int clock_gettime(clockid_t clock_id, struct timespec *tp);
} \ } \
} while (0) } while (0)
#endif #endif
#endif
#endif #endif