Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-02-06 04:25:08 +0300
committerMatthias Braun <matze@braunis.de>2015-02-06 04:25:08 +0300
commit8a3e33945ee1d2961af434dda26de7592fe905f6 (patch)
tree7227a9a88159a52e42169f813642a78724f3040d /libcxxabi/src/abort_message.cpp
parenta6a19f1e38769ed23fbb03bb0c2eacee6dbd7d89 (diff)
Fix build for apple machines.
HAVE_CRASHREPORTERCLIENT_H was potentially undefined and -Wundef is enabled now. llvm-svn: 228368
Diffstat (limited to 'libcxxabi/src/abort_message.cpp')
-rw-r--r--libcxxabi/src/abort_message.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxxabi/src/abort_message.cpp b/libcxxabi/src/abort_message.cpp
index 6d2a5cb993fd..5e25c0f34725 100644
--- a/libcxxabi/src/abort_message.cpp
+++ b/libcxxabi/src/abort_message.cpp
@@ -26,7 +26,7 @@ extern "C" void android_set_abort_message(const char* msg);
#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;