]> pd.if.org Git - pdclib/blobdiff - platform/win32/internals/_PDCLIB_config.h
PDCLIB-2: <wchar.h>: don't expect or expose definition of FILE. Declare mbstate_t...
[pdclib] / platform / win32 / internals / _PDCLIB_config.h
index 7caa7cbe062a12de2e0ee4f8bda607ff505baf9b..abefef934233fddbb9eb890417ab3ddfbeb8a8ec 100644 (file)
@@ -162,6 +162,7 @@ struct _PDCLIB_lldiv_t
 
    XX: Windows requires wchar_t be an unsigned short, but this is not compliant.
 */
+#define _PDCLIB_wint  signed short
 #define _PDCLIB_wchar unsigned short 
 #define _PDCLIB_WCHAR USHRT
 
@@ -219,6 +220,19 @@ struct _PDCLIB_imaxdiv_t
 #define _PDCLIB_clock double
 #define _PDCLIB_CLOCKS_PER_SEC 1000000
 
+/* <time.h>: TIME_UTC
+ *
+ * The TIME_UTC parameter is passed to the timespec_get function in order to get
+ * the system time in UTC since an implementation defined epoch (not necessarily
+ * the same as that used for time_t). That said, on POSIX the obvious 
+ * implementation of timespec_get for TIME_UTC is to wrap 
+ * clock_gettime(CLOCK_REALTIME, ...), which is defined as time in UTC since the
+ * same epoch.
+ *
+ * This may be any non-zero integer value.
+ */
+#define _PDCLIB_TIME_UTC 1
+
 /* -------------------------------------------------------------------------- */
 /* Floating Point                                                             */
 /* -------------------------------------------------------------------------- */