_MSC_VER is more appropriate to guard MSVC-specific #pragma
Thanks to sberg for noticing this Change-Id: I37a3031cbfa3f8a0751bab126bd742dcec36664f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141743 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
910bbd320f
commit
56b5046e03
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue