https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d312ef234bffd4a0732345fa930094b233d2feb6
commit d312ef234bffd4a0732345fa930094b233d2feb6 Author: Jérôme Gardou <jerome.gar...@reactos.org> AuthorDate: Mon May 3 16:09:34 2021 +0200 Commit: Jérôme Gardou <zefk...@users.noreply.github.com> CommitDate: Mon May 3 22:00:57 2021 +0200 [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") \