diff --git a/tests/test_core_platform.c b/tests/test_core_platform.c index ffade55..9a27315 100644 --- a/tests/test_core_platform.c +++ b/tests/test_core_platform.c @@ -22,10 +22,8 @@ #include #include -#ifdef _MSC_VER -# pragma warning(push) -# pragma warning(disable : 4127) /* "conditional expression is constant" */ -#endif +/* Disable MSVC warning "conditional expression is constant" */ +GMIO_PRAGMA_MSVC_WARNING_PUSH_AND_DISABLE(4127) const char* test_platform__alignment() { @@ -105,6 +103,4 @@ const char* test_platform__compiler() return NULL; } -#ifdef _MSC_VER -# pragma warning(pop) -#endif +GMIO_PRAGMA_MSVC_WARNING_POP()