From c86e5d7b9370d4440334a458f9dadf11993a67d6 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 17 Mar 2015 12:00:55 +0100 Subject: [PATCH] stack_trace.cc: fix #elif check for OS_MACOSX Fix '#elif with no expression' add defined() to check. Signed-off-by: Danny Al-Gaaf --- port/stack_trace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/stack_trace.cc b/port/stack_trace.cc index b2075b9a9..c7ddd3a1a 100644 --- a/port/stack_trace.cc +++ b/port/stack_trace.cc @@ -71,7 +71,7 @@ void PrintStackTraceLine(const char* symbol, void* frame) { fprintf(stderr, "\n"); } -#elif OS_MACOSX +#elif defined(OS_MACOSX) void PrintStackTraceLine(const char* symbol, void* frame) { static int pid = getpid();