diff options
author | Chris Robinson <[email protected]> | 2022-07-24 16:53:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-07-24 17:09:50 -0700 |
commit | 7dcd2a86b8ff6c4f1a2872cea626d0d7a4adc269 (patch) | |
tree | 2c8493ee357e93416bb4907fb53666227d167b0c /common | |
parent | e5786ceb594fa1788a748289234d8af485c9c922 (diff) |
Avoid __try on ARMv7 targets with MSVC
Diffstat (limited to 'common')
-rw-r--r-- | common/threads.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/threads.cpp b/common/threads.cpp index c782dc35..ee29de91 100644 --- a/common/threads.cpp +++ b/common/threads.cpp @@ -34,7 +34,8 @@ void althrd_setname(const char *name) { -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined(_M_ARM) + #define MS_VC_EXCEPTION 0x406D1388 #pragma pack(push,8) struct { @@ -55,7 +56,9 @@ void althrd_setname(const char *name) __except(EXCEPTION_CONTINUE_EXECUTION) { } #undef MS_VC_EXCEPTION + #else + (void)name; #endif } |