[libcxxabi] r228368 - Fix build for apple machines.

Matthias Braun matze at braunis.de
Thu Feb 5 17:25:09 PST 2015


Author: matze
Date: Thu Feb  5 19:25:08 2015
New Revision: 228368

URL: http://llvm.org/viewvc/llvm-project?rev=228368&view=rev
Log:
Fix build for apple machines.

HAVE_CRASHREPORTERCLIENT_H was potentially undefined and -Wundef is
enabled now.

Modified:
    libcxxabi/trunk/src/abort_message.cpp

Modified: libcxxabi/trunk/src/abort_message.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/abort_message.cpp?rev=228368&r1=228367&r2=228368&view=diff
==============================================================================
--- libcxxabi/trunk/src/abort_message.cpp (original)
+++ libcxxabi/trunk/src/abort_message.cpp Thu Feb  5 19:25:08 2015
@@ -26,7 +26,7 @@ extern "C" void android_set_abort_messag
 
 #ifdef __APPLE__
 #   if defined(__has_include) && __has_include(<CrashReporterClient.h>)
-#       define HAVE_CRASHREPORTERCLIENT_H 1
+#       define HAVE_CRASHREPORTERCLIENT_H
 #       include <CrashReporterClient.h>
 #   endif
 #endif
@@ -44,7 +44,7 @@ void abort_message(const char* format, .
     va_end(list);
     fprintf(stderr, "\n");
 
-#if defined(__APPLE__) && HAVE_CRASHREPORTERCLIENT_H
+#if defined(__APPLE__) && defined(HAVE_CRASHREPORTERCLIENT_H)
     // record message in crash report
     char* buffer;
     va_list list2;





More information about the cfe-commits mailing list