|
@@ -30,11 +30,12 @@
|
|
|
#endif
|
|
|
|
|
|
#ifdef HL_WIN
|
|
|
+# include <locale.h>
|
|
|
typedef uchar pchar;
|
|
|
#define pprintf(str,file) uprintf(USTR(str),file)
|
|
|
#define pfopen(file,ext) _wfopen(file,USTR(ext))
|
|
|
#define pcompare wcscmp
|
|
|
-#define ptoi(s) wcstol(s,NULL,10)
|
|
|
+#define ptoi(s) wcstol(s,NULL,10)
|
|
|
#define PSTR(x) USTR(x)
|
|
|
#else
|
|
|
typedef char pchar;
|
|
@@ -134,6 +135,9 @@ int main(int argc, pchar *argv[]) {
|
|
|
# ifdef HL_64
|
|
|
fprintf(stderr,"HL/JIT is currently not supported when compiled to 64 bits, use make ARCH=32 to compile to 32 bits\n");
|
|
|
exit(1);
|
|
|
+# endif
|
|
|
+# ifdef HL_WIN
|
|
|
+ setlocale(LC_ALL,"");
|
|
|
# endif
|
|
|
hl_global_init(&ctx);
|
|
|
hl_sys_init((void**)argv,argc,file);
|