1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

Adjust 'W_EXITCODE' for Windows.

* libguile/posix.c (W_EXITCODE) [_WIN32]: New specialized definition.
This commit is contained in:
Ludovic Courtès 2023-01-18 18:24:11 +01:00
parent cd7475541a
commit 4404b553a5

View file

@ -100,7 +100,11 @@
#ifndef W_EXITCODE
/* Macro for constructing a status value. Found in glibc. */
# define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
# ifdef _WIN32 /* see Gnulib's posix-w32.h */
# define W_EXITCODE(ret, sig) (ret)
# else
# define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
# endif
#endif
verify (WEXITSTATUS (W_EXITCODE (127, 0)) == 127);