summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2017-11-16 22:48:19 +0800
committerruki <[email protected]>2017-11-16 10:49:56 +0800
commitaecb5cbe755746baea1e0f3ec9c7a0cc0bdedd5b (patch)
tree096b0d30f7ba64f3337b2081dad61d28a8e28540 /core/src
parent0b97a1c0f52a1f9cf563bc1ec2fe41555ed173be (diff)
fix os.nuldev on gcc/mingw
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/machine.c8
1 files changed, 0 insertions, 8 deletions
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);