stack_trace.cc: fix #elif check for OS_MACOSX

Fix '#elif with no expression' add defined() to check.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
main
Danny Al-Gaaf 10 years ago
parent 56337faf3e
commit c86e5d7b93
  1. 2
      port/stack_trace.cc

@ -71,7 +71,7 @@ void PrintStackTraceLine(const char* symbol, void* frame) {
fprintf(stderr, "\n"); fprintf(stderr, "\n");
} }
#elif OS_MACOSX #elif defined(OS_MACOSX)
void PrintStackTraceLine(const char* symbol, void* frame) { void PrintStackTraceLine(const char* symbol, void* frame) {
static int pid = getpid(); static int pid = getpid();

Loading…
Cancel
Save