mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
fixed Windows header
cmake build script: added timefn
This commit is contained in:
parent
3d346579d8
commit
2c6b14ed22
2 changed files with 4 additions and 3 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue