* include/sys/wait.h: Ensure that C++ functions are only used when using C++.
This commit is contained in:
parent
986da7853d
commit
263acfa613
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue