fixed Windows header
cmake build script: added timefn
This commit is contained in:
+2
-1
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user