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:
parent
b39ad97a87
commit
4d47d92a4a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user