fixed Windows header

cmake build script: added timefn
This commit is contained in:
Yann Collet
2019-04-10 14:54:13 -07:00
parent 3d346579d8
commit 2c6b14ed22
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -47,6 +47,7 @@ extern "C" {
******************************************/
#if defined(_WIN32) /* Windows */
#include <Windows.h> /* LARGE_INTEGER */
typedef LARGE_INTEGER UTIL_time_t;
#define UTIL_TIME_INITIALIZER { { 0, 0 } }
@@ -56,7 +57,7 @@ extern "C" {
typedef PTime UTIL_time_t;
#define UTIL_TIME_INITIALIZER 0
#elif (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */)
#elif (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */)
typedef struct timespec UTIL_time_t; /* C11 defines struct timespes within time.h */
#define UTIL_TIME_INITIALIZER { 0, 0 }