[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MXE win32 errors "'WIFEXITED' was not declared in this scope"
From: |
Andreas Weber |
Subject: |
Re: MXE win32 errors "'WIFEXITED' was not declared in this scope" |
Date: |
Thu, 26 Jun 2014 09:18:46 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
Am 25.06.2014 20:11, schrieb Philip Nienhuis:
> When trying to build octave-4.1.0+ for windows (MXE-cross-build) I get error
> messages related to mkoctfile, apparently due to changeset 5b7b18d603ae
> 'mkoctfile.in.cc: fix return value if subprocess fails (bug #42549).':
>
> mkoctfile.cc:348:24: error 'WIFEXITED' was not declared in this scope
> mkoctfile.cc:349:33: error 'WEXITSTATUS' was not declared in this scope
>
> Where are these identifiers (macros) declared for win32 systems?
I would have bet they are also accessible when doing the MXE build.
First they are in configure:
#ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
#endif
#ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
Another definition is in sys_wait:
liboctave/system/syswait.h:#define WIFEXITED(stat_val) (((stat_val) &
255) == 0) and also a definition in gnulib-hg/lib/sys_wait.in.h
--Andy