aboutsummaryrefslogtreecommitdiff
path: root/src/lib_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib_io.c')
-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 468d3275..8836d052 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 102#elif LJ_TARGET_WINDOWS && !LJ_TARGET_XBOXONE
103 stat = _pclose(iof->fp); 103 stat = _pclose(iof->fp);
104#else 104#else
105 lua_assert(0); 105 lua_assert(0);
@@ -400,7 +400,7 @@ LJLIB_CF(io_open)
400 400
401LJLIB_CF(io_popen) 401LJLIB_CF(io_popen)
402{ 402{
403#if LJ_TARGET_POSIX || LJ_TARGET_WINDOWS 403#if LJ_TARGET_POSIX || (LJ_TARGET_WINDOWS && !LJ_TARGET_XBOXONE)
404 const char *fname = strdata(lj_lib_checkstr(L, 1)); 404 const char *fname = strdata(lj_lib_checkstr(L, 1));
405 GCstr *s = lj_lib_optstr(L, 2); 405 GCstr *s = lj_lib_optstr(L, 2);
406 const char *mode = s ? strdata(s) : "r"; 406 const char *mode = s ? strdata(s) : "r";