mirror of
https://github.com/MaskRay/ccls.git
synced 2025-04-16 05:42:17 +00:00
Don't use MSVC specific exception handler for MinGW
This commit is contained in:
parent
7fa1accfdf
commit
358c001d3c
@ -88,7 +88,11 @@ void SetCurrentThreadName(const std::string& thread_name) {
|
|||||||
__try {
|
__try {
|
||||||
RaiseException(MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR),
|
RaiseException(MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR),
|
||||||
(ULONG_PTR*)&info);
|
(ULONG_PTR*)&info);
|
||||||
|
#ifdef _MSC_VER
|
||||||
} __except (EXCEPTION_EXECUTE_HANDLER) {
|
} __except (EXCEPTION_EXECUTE_HANDLER) {
|
||||||
|
#else
|
||||||
|
} catch (...) {
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user