summaryrefslogtreecommitdiff
path: root/core/src/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-10 23:40:39 +0800
committerruki <[email protected]>2020-02-10 16:03:55 +0800
commit84f264409c95ace58e7fde0a7ed50103a604edad (patch)
treec6cd4ad1cf4ce2924658f38edc211a2566f72f0c /core/src/xmake
parent60802d45c53e0a63a5dba3da8a082140bb4cb979 (diff)
add mingw platform makefile
Diffstat (limited to 'core/src/xmake')
-rw-r--r--core/src/xmake/machine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index 115f85d08..c93223dc8 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -760,7 +760,8 @@ tb_int_t xm_machine_main(xm_machine_ref_t self, tb_int_t argc, tb_char_t** argv)
xm_machine_t* machine = (xm_machine_t*)self;
tb_assert_and_check_return_val(machine && machine->lua, -1);
-#ifdef TB_CONFIG_OS_WINDOWS
+#if defined(TB_CONFIG_OS_WINDOWS) && defined(TB_COMPILER_IS_MSVC)
+ // set "stdin" to have unicode mode
if (_isatty(_fileno(stdin))) _setmode(_fileno(stdin), _O_U16TEXT);
#endif