diff --git a/setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx b/setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx index 77e4741fafda..0d326efcaba6 100644 --- a/setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx +++ b/setup_native/source/win32/customactions/reg4msdoc/registryexception.cxx @@ -6,9 +6,13 @@ #include "registryexception.hxx" #endif +#ifdef _MSC_VER #pragma warning(push, 1) /* disable warnings within system headers */ +#endif #include +#ifdef _MSC_VER #pragma warning(pop) +#endif ////////////////////////////////////////////////////////////////////// // Konstruktion/Destruktion