]> pd.if.org Git - pdclib/blobdiff - platform/example/internals/_PDCLIB_config.h
Using code from tzcode.
[pdclib] / platform / example / internals / _PDCLIB_config.h
index 168053fb7d8b6f244cd12ea2126157c6cda6b4c6..fe23663244a3c29ebace87258ed06a69e53452b1 100755 (executable)
@@ -145,8 +145,8 @@ struct _PDCLIB_lldiv_t
 /* Large enough an integer to hold all character codes of the largest supported
    locale.
 */
-#define _PDCLIB_wchar unsigned short
-#define _PDCLIB_WCHAR USHRT
+#define _PDCLIB_wchar unsigned int
+#define _PDCLIB_WCHAR UINT
 
 /* (Signed) integer type capable of taking the (cast) value of a void *, and
    having the value cast back to void *, comparing equal to the original.
@@ -170,6 +170,19 @@ struct _PDCLIB_imaxdiv_t
     _PDCLIB_intmax rem;
 };
 
+/* -------------------------------------------------------------------------- */
+/* Time types                                                                 */
+/* -------------------------------------------------------------------------- */
+
+/* See <time.h> for a couple of comments on these types and their semantics. */
+
+#define _PDCLIB_time long
+
+#define _PDCLIB_clock long
+#define _PDCLIB_CLOCKS_PER_SEC 1000000
+
+#define _PDCLIB_TIME_UTC 1
+
 /* -------------------------------------------------------------------------- */
 /* Floating Point                                                             */
 /* -------------------------------------------------------------------------- */