This is the mail archive of the cygwin-patches 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: Problem with: Re: [PATCH] Allow usage of union wait for wait() functions and macros


Christopher Faylor wrote:
On Thu, Dec 08, 2011 at 07:42:48AM +0100, Christian Franke wrote:
Fix:
#ifdef __cplusplus
+extern "C++" {
...
inline int __wait_status_to_int(int __status) { .... }
inline int __wait_status_to_int(const union wait&__status) { .... }
...
+}
#endif
I've added that to sys/wait.h. Thanks.

Unfortunately sys/wait.h 1.6 is incomplete. The extern "C++" block should include all overloaded C++ functions. Otherwise g++ issues similar errors for the wait*() functions as seen in the original message.


Christian


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