diff options
Diffstat (limited to 'src/lib/clock_gettime.h')
-rw-r--r-- | src/lib/clock_gettime.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/clock_gettime.h b/src/lib/clock_gettime.h index ac4ca1f85..ea14f885c 100644 --- a/src/lib/clock_gettime.h +++ b/src/lib/clock_gettime.h @@ -30,13 +30,19 @@ /* otherwise, we have to define it */ +#ifndef __WIN32__ + /* get timespec from <time.h> */ #include <time.h> +#endif /* ! __WIN32__ */ + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ +struct timespec; + typedef enum { CLOCK_REALTIME, CLOCK_MONOTONIC, |