* include/sys/wait.h: Ensure that C++ functions are only used when using C++.

This commit is contained in:
Christopher Faylor 2011-12-08 06:58:10 +00:00
parent 986da7853d
commit 263acfa613
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-12-08 Christopher Faylor Christian Franke <franke@computer.org>
* include/sys/wait.h: Ensure that C++ functions are only used when
using C++.
2011-12-08 Christopher Faylor <me.cygwin2011@cgf.cx>
* select.cc (cygwin_select): Make sure that poll is called when

View File

@ -72,10 +72,12 @@ union wait
#ifdef __cplusplus
extern "C++" {
inline int __wait_status_to_int (int __status)
{ return __status; }
inline int __wait_status_to_int (const union wait & __status)
{ return __status.w_status; }
};
/* C++ wait() variants for `union wait'. */
inline pid_t wait (union wait *__status)