1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-28 11:09:54 +00:00

Windows WEXITSTATUS fix?

This commit is contained in:
Calvin Rose 2019-05-29 11:53:57 -04:00
parent b39ad97a87
commit 4d47d92a4a

View File

@ -285,6 +285,7 @@ static Janet cfun_io_fclose(int32_t argc, Janet *argv) {
if (iof->flags & IO_PIPED) {
#ifdef JANET_WINDOWS
#define pclose _pclose
#define WEXITSTATUS(x) x
#endif
int status = pclose(iof->file);
iof->flags |= IO_CLOSED;