SjLj: Fix building after SVN r314632
authorMartin Storsjo <martin@martin.st>
Sun, 1 Oct 2017 20:22:40 +0000 (20:22 +0000)
committerMartin Storsjo <martin@martin.st>
Sun, 1 Oct 2017 20:22:40 +0000 (20:22 +0000)
The code moved from Unwind_AppleExtras.cpp to Unwind-sjlj.c needed
a few minor modifications to build as C instead of C++.

llvm-svn: 314635

libunwind/src/Unwind-sjlj.c

index 4206c46..90cac3f 100644 (file)
@@ -67,7 +67,7 @@ struct _Unwind_FunctionContext {
 #if defined(__APPLE__)
 #include <System/pthread_machdep.h>
 #else
-static _LIBUNWIND_THREAD_LOCAL _Unwind_FunctionContext *stack = nullptr;
+static _LIBUNWIND_THREAD_LOCAL struct _Unwind_FunctionContext *stack = NULL;
 #endif
 
 static struct _Unwind_FunctionContext *__Unwind_SjLj_GetTopOfFunctionStack() {