diff --git a/modules/rostests/apitests/compiler/ms_seh.c b/modules/rostests/apitests/compiler/ms_seh.c index c3b4190654f..2b92f1451bd 100644 --- a/modules/rostests/apitests/compiler/ms_seh.c +++ b/modules/rostests/apitests/compiler/ms_seh.c @@ -79,6 +79,10 @@ int seh0058(); } \ _SEH2_END +#if defined(_MSC_VER) && !defined(_USE_NATIVE_SEH) +#define _USE_NATIVE_SEH +#endif + START_TEST(ms_seh) { run_test(seh0001);