Fix Wundef warning for __cplusplus
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 9 Jul 2014 05:06:23 +0000 (10:36 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 9 Jul 2014 05:06:23 +0000 (10:36 +0530)
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.

ChangeLog
sysdeps/generic/unwind-pe.h

index 5892add..b70d337 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index a4afe5c..a6ee414 100644 (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