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") \