mirror of
https://github.com/janet-lang/janet
synced 2025-06-23 17:04:11 +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) {
|
if (iof->flags & IO_PIPED) {
|
||||||
#ifdef JANET_WINDOWS
|
#ifdef JANET_WINDOWS
|
||||||
#define pclose _pclose
|
#define pclose _pclose
|
||||||
|
#define WEXITSTATUS(x) x
|
||||||
#endif
|
#endif
|
||||||
int status = pclose(iof->file);
|
int status = pclose(iof->file);
|
||||||
iof->flags |= IO_CLOSED;
|
iof->flags |= IO_CLOSED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user