mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 13:48:04 +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 {
|
||||
RaiseException(MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR),
|
||||
(ULONG_PTR*)&info);
|
||||
#ifdef _MSC_VER
|
||||
} __except (EXCEPTION_EXECUTE_HANDLER) {
|
||||
#else
|
||||
} catch (...) {
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user