]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__WAIT_INT): Don't use complex version with __typeof for C++ since
authorUlrich Drepper <drepper@redhat.com>
Tue, 9 Dec 1997 23:45:43 +0000 (23:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 9 Dec 1997 23:45:43 +0000 (23:45 +0000)
this fails for class members.

posix/sys/wait.h

index a13b825638f105b2b174e758c5594c819ebcb5c0..378c4e1789d5e7adc40ee6cc5b78f1174042f2c2 100644 (file)
@@ -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; }))