diff options
author | Martin Storsjo <martin@martin.st> | 2017-10-01 20:22:40 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2017-10-01 20:22:40 +0000 |
commit | 1af0a827d7e0b77f3abf3b6ccd77322417d545a7 (patch) | |
tree | 636c19836ce16a05123ef48a4c8ebc14d5c3744f | |
parent | c4646dd8e4554dd32fd486b38471d14c4a18c26f (diff) |
SjLj: Fix building after SVN r314632
The code moved from Unwind_AppleExtras.cpp to Unwind-sjlj.c needed
a few minor modifications to build as C instead of C++.
git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@314635 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | src/Unwind-sjlj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Unwind-sjlj.c b/src/Unwind-sjlj.c index 4206c46..90cac3f 100644 --- a/src/Unwind-sjlj.c +++ b/src/Unwind-sjlj.c @@ -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() { |