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:
Siddhesh Poyarekar 2014-07-09 10:36:23 +05:30
parent e35c53e397
commit 6680738a18
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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