forked from OSchip/llvm-project
Fix build for apple machines.
HAVE_CRASHREPORTERCLIENT_H was potentially undefined and -Wundef is enabled now. llvm-svn: 228368
This commit is contained in:
parent
a6a19f1e38
commit
8a3e33945e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue