This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug] __wait_status_to_int() is expected to be a macro


On 12/06/18 12:45, Eric Blake wrote:
On 06/12/2018 03:48 AM, Corinna Vinschen wrote:
On Jun  8 12:43, Eric Blake wrote:
On 06/08/2018 12:26 PM, Hans-Bernhard Bröker wrote:
Am 08.06.2018 um 17:16 schrieb Denis Nikiforov:
/usr/include/boost/process/detail/posix/is_running.hpp:18:1: error:
non-constant condition for static assertion
   static_assert(!WIFEXITED(still_active), "Internal Error");
   ^~~~~~~~~~~~~

__wait_status_to_int must be a macros but it's redefined as a function.

But, assuming I'm completely off-track above and a macro is really
desired:

Defining __wait_status_to_int as function is C++-specific.  I don't think
this is really required.  A quick test implies the C macro definition in
sys/wait.h is sufficent for C++ as well.

Yes, I think you're right on that front.

Apologies for reviving an old thread, but I ran into the same problem today. Is there any chance we could have a macro-only '__wait_status_to_int' in Cygwin 2.11.0, please?

Many thanks in advance,

Dave.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]