]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Update comment in timefn 1965/head
authorNick Terrell <terrelln@fb.com>
Wed, 22 Jan 2020 19:17:30 +0000 (11:17 -0800)
committerNick Terrell <terrelln@fb.com>
Wed, 22 Jan 2020 19:17:30 +0000 (11:17 -0800)
programs/timefn.c
programs/timefn.h

index 4025063eb79a24821058dcdc8993e40045c5df5b..8d92b3a70c71fa3a08a1b7ae7906cc1c36e5c761 100644 (file)
@@ -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 */) \
-    && 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 <stdio.h>    /* perror */
index 0f2b12ce89396af36171388918a00a2f958e9c9a..7636f1f4d1b10c0692e9196183af067d06d22663 100644 (file)
@@ -51,8 +51,10 @@ extern "C" {
     typedef PTime UTIL_time_t;
     #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 */) \
-    && 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;
     #define UTIL_TIME_INITIALIZER { 0, 0 }