mirror of git://sourceware.org/git/glibc.git
Fix Wundef warning for __cplusplus
All current uses of the __cplusplus macro only check if it is defined or not. Fix this #if to use $ifdef like the rest of the code.
This commit is contained in:
parent
e35c53e397
commit
6680738a18
|
|
@ -1,3 +1,8 @@
|
|||
2014-07-09 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||
|
||||
* sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
|
||||
defined.
|
||||
|
||||
2014-07-08 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||
|
||||
* resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
than duplicating code, however. */
|
||||
|
||||
/* If using C++, references to abort have to be qualified with std::. */
|
||||
#if __cplusplus
|
||||
#ifdef __cplusplus
|
||||
#define __gxx_abort std::abort
|
||||
#else
|
||||
#define __gxx_abort abort
|
||||
|
|
|
|||
Loading…
Reference in New Issue