From aecb5cbe755746baea1e0f3ec9c7a0cc0bdedd5b Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 16 Nov 2017 22:48:19 +0800 Subject: fix os.nuldev on gcc/mingw --- core/src/xmake/machine.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'core/src') diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index 75fc9548d..6d26c445d 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -522,14 +522,6 @@ xm_machine_ref_t xm_machine_init() #endif lua_setglobal(impl->lua, "_ARCH"); - // init redirect to null -#if defined(TB_CONFIG_OS_WINDOWS) - lua_pushstring(impl->lua, "nul"); -#else - lua_pushstring(impl->lua, "/dev/null"); -#endif - lua_setglobal(impl->lua, "_NULDEV"); - // get version tb_version_t const* version = xm_version(); tb_assert_and_check_break(version); -- cgit v1.3.1