]> pd.if.org Git - pdclib.old/blobdiff - platform/win32/internals/_PDCLIB_config.h
Bring example platform up to date
[pdclib.old] / platform / win32 / internals / _PDCLIB_config.h
index 4e4050153f399e7dc7e5bd623ce26d0d06613bb9..ea5ef4743e397546f26f24406d9e46eab83f18cc 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
 
@@ -335,9 +335,14 @@ struct _PDCLIB_imaxdiv_t
 
 /* Locale --------------------------------------------------------------------*/
 
-/* Locale method. See _PDCLIB_locale.h */
+/* Locale method. See _PDCLIB_locale.h. If undefined, POSIX per-thread locales
+ * will be disabled
+ */
 #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. */