aboutsummaryrefslogtreecommitdiff
path: root/posix/sys/wait.h
diff options
context:
space:
mode:
Diffstat (limited to 'posix/sys/wait.h')
-rw-r--r--posix/sys/wait.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/sys/wait.h b/posix/sys/wait.h
index 9b5025a..bc2298f 100644
--- a/posix/sys/wait.h
+++ b/posix/sys/wait.h
@@ -38,7 +38,7 @@ __BEGIN_DECLS
/* Lots of hair to allow traditional BSD use of `union wait'
as well as POSIX.1 use of `int' for the status word. */
-# ifdef __GNUC__
+# if defined __GNUC__ && !defined __cplusplus
# define __WAIT_INT(status) \
(__extension__ ({ union { __typeof(status) __in; int __i; } __u; \
__u.__in = (status); __u.__i; }))