diff --git a/libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx b/libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx index 32ad84ac116a..ef2f26917b30 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx @@ -151,7 +151,7 @@ static void initWindow(GtvApplicationWindow* window) #if defined __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" -#elif defined _WIN32 +#elif defined _MSC_VER #pragma warning(push) #pragma warning(disable:4996) #endif @@ -161,7 +161,7 @@ static void initWindow(GtvApplicationWindow* window) gtk_container_set_focus_chain ( GTK_CONTAINER (priv->container), focusChain ); #if defined __GNUC__ #pragma GCC diagnostic pop -#elif defined _WIN32 +#elif defined _MSC_VER #pragma warning(pop) #endif