]> pd.if.org Git - pdclib/blobdiff - platform/win32/crt0.c
PDCLib includes with quotes, not <>.
[pdclib] / platform / win32 / crt0.c
index bead33206c1541a8f782a52cca59abb2c6c68ce5..471e42c094fb199b39549dcc3911e4e649537e17 100644 (file)
@@ -5,8 +5,9 @@
 #include <threads.h>\r
 #include <wchar.h> // Watcom bug: winnt.h assumes string.h defines wchar_t\r
 #include <windows.h>\r
-#include <_PDCLIB_io.h>\r
-#include <_PDCLIB_locale.h>\r
+#include "_PDCLIB_io.h"\r
+#include "_PDCLIB_locale.h"\r
+#include "_PDCLIB_clocale.h"\r
 \r
 static char ** argvToAnsi( wchar_t ** wargv, int argc )\r
 {\r
@@ -116,6 +117,8 @@ void __cdecl mainCRTStartup( void )
     wargv = CommandLineToArgvW(cl, &argc);\r
     argv  = argvToAnsi(wargv, argc);\r
 \r
+    _PDCLIB_initclocale( &_PDCLIB_global_locale );\r
+\r
     if(tss_create(&_PDCLIB_locale_tss, (tss_dtor_t) freelocale) \r
             != thrd_success) {\r
         fputs( "Error during C runtime initialization: "\r