From d312ef234bffd4a0732345fa930094b233d2feb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Mon, 3 May 2021 16:09:34 +0200 Subject: [PATCH] [PSEH] Fix use of dummy implementation in C++ --- sdk/lib/pseh/include/pseh/pseh2.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sdk/lib/pseh/include/pseh/pseh2.h b/sdk/lib/pseh/include/pseh/pseh2.h index ecaaa72ee87..407557f2152 100644 --- a/sdk/lib/pseh/include/pseh/pseh2.h +++ b/sdk/lib/pseh/include/pseh/pseh2.h @@ -43,8 +43,15 @@ #elif defined(_USE_DUMMY_PSEH) || defined (__arm__) || defined(_M_AMD64) +#ifdef __cplusplus +extern"C" +{ +#endif extern int _SEH2_Volatile0; extern int _SEH2_VolatileExceptionCode; +#ifdef __cplusplus +} // extern "C" +#endif #define _SEH2_TRY \ _Pragma("GCC diagnostic push") \