Fix build for apple machines.

HAVE_CRASHREPORTERCLIENT_H was potentially undefined and -Wundef is
enabled now.

llvm-svn: 228368
This commit is contained in:
Matthias Braun 2015-02-06 01:25:08 +00:00
parent a6a19f1e38
commit 8a3e33945e
1 changed files with 2 additions and 2 deletions

View File

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