diff options
author | Matthias Braun <matze@braunis.de> | 2015-02-06 04:25:08 +0300 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-02-06 04:25:08 +0300 |
commit | 8a3e33945ee1d2961af434dda26de7592fe905f6 (patch) | |
tree | 7227a9a88159a52e42169f813642a78724f3040d /libcxxabi/src/abort_message.cpp | |
parent | a6a19f1e38769ed23fbb03bb0c2eacee6dbd7d89 (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.cpp | 4 |
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; |