aboutsummaryrefslogtreecommitdiff
path: root/src/lib_io.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib_io.c b/src/lib_io.c
index 9763ed46..73fd9322 100644
--- a/src/lib_io.c
+++ b/src/lib_io.c
@@ -99,7 +99,7 @@ static int io_file_close(lua_State *L, IOFileUD *iof)
99 int stat = -1; 99 int stat = -1;
100#if LJ_TARGET_POSIX 100#if LJ_TARGET_POSIX
101 stat = pclose(iof->fp); 101 stat = pclose(iof->fp);
102#elif LJ_TARGET_WINDOWS && !LJ_TARGET_XBOXONE 102#elif LJ_TARGET_WINDOWS && !LJ_TARGET_XBOXONE && !LJ_TARGET_UWP
103 stat = _pclose(iof->fp); 103 stat = _pclose(iof->fp);
104#else 104#else
105 lua_assert(0); 105 lua_assert(0);
@@ -406,7 +406,7 @@ LJLIB_CF(io_open)
406 406
407LJLIB_CF(io_popen) 407LJLIB_CF(io_popen)
408{ 408{
409#if LJ_TARGET_POSIX || (LJ_TARGET_WINDOWS && !LJ_TARGET_XBOXONE) 409#if LJ_TARGET_POSIX || (LJ_TARGET_WINDOWS && !LJ_TARGET_XBOXONE && !LJ_TARGET_UWP)
410 const char *fname = strdata(lj_lib_checkstr(L, 1)); 410 const char *fname = strdata(lj_lib_checkstr(L, 1));
411 GCstr *s = lj_lib_optstr(L, 2); 411 GCstr *s = lj_lib_optstr(L, 2);
412 const char *mode = s ? strdata(s) : "r"; 412 const char *mode = s ? strdata(s) : "r";