diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-12-09 23:45:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-12-09 23:45:43 +0000 |
commit | dec3f3e9f478cf88a44c3da34aa6540383d01bf1 (patch) | |
tree | 3269f6eb2c81d5b5a19b91d015588345759b0d24 | |
parent | 4a301c00191cc244995dd6e04a81d0c5898edceb (diff) |
(__WAIT_INT): Don't use complex version with __typeof for C++ since
this fails for class members.
-rw-r--r-- | posix/sys/wait.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/sys/wait.h b/posix/sys/wait.h index a13b825638..378c4e1789 100644 --- a/posix/sys/wait.h +++ b/posix/sys/wait.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 94, 96 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 94, 96, 97 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -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; })) |