mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Adjust 'W_EXITCODE' for Windows.
* libguile/posix.c (W_EXITCODE) [_WIN32]: New specialized definition.
This commit is contained in:
parent
cd7475541a
commit
4404b553a5
1 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,11 @@
|
||||||
|
|
||||||
#ifndef W_EXITCODE
|
#ifndef W_EXITCODE
|
||||||
/* Macro for constructing a status value. Found in glibc. */
|
/* Macro for constructing a status value. Found in glibc. */
|
||||||
|
# ifdef _WIN32 /* see Gnulib's posix-w32.h */
|
||||||
|
# define W_EXITCODE(ret, sig) (ret)
|
||||||
|
# else
|
||||||
# define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
|
# define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
verify (WEXITSTATUS (W_EXITCODE (127, 0)) == 127);
|
verify (WEXITSTATUS (W_EXITCODE (127, 0)) == 127);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue