mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
All signal handlers are required to have C language linkage in C++. This does not fix all signal handlers, but does fix the most recent one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36f0dbbf3e
commit
1b7b2597d5
@ -196,7 +196,7 @@ static int AvoidMessageBoxHook(int ReportType, char *Message, int *Return) {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void HandleAbort(int Sig) {
|
extern "C" void HandleAbort(int Sig) {
|
||||||
if (Sig == SIGABRT) {
|
if (Sig == SIGABRT) {
|
||||||
LLVM_BUILTIN_TRAP;
|
LLVM_BUILTIN_TRAP;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user