diff options
author | Christopher Faylor <me@cgf.cx> | 2011-12-08 10:58:10 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-12-08 10:58:10 +0400 |
commit | 263acfa61391e4a483acb37db92976f81cc3ae37 (patch) | |
tree | 00e444ff0e1f563845ab831335ed90751af42673 /winsup/cygwin/include | |
parent | 986da7853d68e173d6f48f6a3cfe15df41ad084f (diff) |
* include/sys/wait.h: Ensure that C++ functions are only used when using C++.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/sys/wait.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/wait.h b/winsup/cygwin/include/sys/wait.h index 4341f6970..e7d16095e 100644 --- a/winsup/cygwin/include/sys/wait.h +++ b/winsup/cygwin/include/sys/wait.h @@ -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) |