]> pd.if.org Git - pdclib/blobdiff - platform/win32/internals/_PDCLIB_config.h
Win32: Change wint_t to be signed int (32-bit) in order to hold UCS-2 + -1. Additiona...
[pdclib] / platform / win32 / internals / _PDCLIB_config.h
index 5e91db53d04cd8f1df57500a186ef591d6773cfa..9e69353827cf0dad6cae9d21c2e90d40a55dd68d 100644 (file)
@@ -156,7 +156,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_wint  signed int
 #define _PDCLIB_wchar unsigned short 
 #define _PDCLIB_WCHAR USHRT
 
@@ -333,6 +333,14 @@ struct _PDCLIB_imaxdiv_t
 
 /* TODO: Better document these */
 
+/* Locale --------------------------------------------------------------------*/
+
+/* Locale method. See _PDCLIB_locale.h */
+#define _PDCLIB_LOCALE_METHOD _PDCLIB_LOCALE_METHOD_TSS
+
+/* wchar_t encoding */
+#define _PDCLIB_WCHAR_ENCODING _PDCLIB_WCHAR_ENCODING_UTF16
+
 /* I/O ---------------------------------------------------------------------- */
 
 /* The default size for file buffers. Must be at least 256. */