mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Update comment in timefn
This commit is contained in:
@ -82,9 +82,10 @@ PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* C11 requires timespec_get, but FreeBSD 11 lacks it, while still claiming C11 compliance.
|
||||||
|
Android also lacks it but does define TIME_UTC. */
|
||||||
#elif (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */) \
|
#elif (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */) \
|
||||||
&& defined(TIME_UTC) && !defined(__ANDROID__) /* C11 requires timespec_get, but FreeBSD 11 lacks it, while still claiming C11 compliance */
|
&& defined(TIME_UTC) && !defined(__ANDROID__)
|
||||||
|
|
||||||
#include <stdlib.h> /* abort */
|
#include <stdlib.h> /* abort */
|
||||||
#include <stdio.h> /* perror */
|
#include <stdio.h> /* perror */
|
||||||
|
@ -51,8 +51,10 @@ extern "C" {
|
|||||||
typedef PTime UTIL_time_t;
|
typedef PTime UTIL_time_t;
|
||||||
#define UTIL_TIME_INITIALIZER 0
|
#define UTIL_TIME_INITIALIZER 0
|
||||||
|
|
||||||
|
/* C11 requires timespec_get, but FreeBSD 11 lacks it, while still claiming C11 compliance.
|
||||||
|
Android also lacks it but does define TIME_UTC. */
|
||||||
#elif (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */) \
|
#elif (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */) \
|
||||||
&& defined(TIME_UTC) && !defined(__ANDROID__) /* C11 requires timespec_get, but FreeBSD 11 lacks it, while still claiming C11 compliance */
|
&& defined(TIME_UTC) && !defined(__ANDROID__)
|
||||||
|
|
||||||
typedef struct timespec UTIL_time_t;
|
typedef struct timespec UTIL_time_t;
|
||||||
#define UTIL_TIME_INITIALIZER { 0, 0 }
|
#define UTIL_TIME_INITIALIZER { 0, 0 }
|
||||||
|
Reference in New Issue
Block a user