mirror of
https://github.com/janet-lang/janet
synced 2025-09-05 04:18:03 +00:00
Windows WEXITSTATUS fix?
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user