]> git.proxmox.com Git - wasi-libc.git/commitdiff
Define TIME_UTC to be 1.
authorDan Gohman <sunfish@mozilla.com>
Mon, 29 Apr 2019 17:23:44 +0000 (10:23 -0700)
committerDan Gohman <sunfish@mozilla.com>
Wed, 1 May 2019 19:52:28 +0000 (12:52 -0700)
TIME_UTC is the only time base defined by the relevant standards. This
change doesn't preclude adding other time bases in the future.

expected/wasm32-wasi/predefined-macros.txt
libc-bottom-half/headers/public/__header_time.h

index dfdeedb2630ff0bb7c375808c8f011012373d2f0..63da8172024643cabb287a918cf03e5bee40e538 100644 (file)
 #define TIME_INS 1
 #define TIME_OK 0
 #define TIME_OOP 3
-#define TIME_UTC __WASI_CLOCK_REALTIME
+#define TIME_UTC 1
 #define TIME_WAIT 4
 #define TMAGIC "ustar"
 #define TMAGLEN 6
index efe42e7d036dbaa7a7b6db637c907da75b5d48b5..c625159515c07a483a781d4860d25f8b345e7e17 100644 (file)
@@ -23,7 +23,10 @@ extern const struct __clockid _CLOCK_REALTIME;
 extern const struct __clockid _CLOCK_THREAD_CPUTIME_ID;
 #define CLOCK_THREAD_CPUTIME_ID (&_CLOCK_THREAD_CPUTIME_ID)
 
-#define TIME_UTC __WASI_CLOCK_REALTIME
+/*
+ * TIME_UTC is the only standardized time base value.
+ */
+#define TIME_UTC 1
 
 /*
  * Note that XSI specifies CLOCKS_PER_SEC to be 1000000, rather than