From 04927f3f6146b1f4b4916f3de9e3e5947e195e20 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Tue, 1 Jul 2014 20:33:59 +0200 Subject: Fix compiler warning due to undefined macro --- autotests/kconfigtest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autotests/kconfigtest.cpp') diff --git a/autotests/kconfigtest.cpp b/autotests/kconfigtest.cpp index 7cb3f903..418929b1 100644 --- a/autotests/kconfigtest.cpp +++ b/autotests/kconfigtest.cpp @@ -170,7 +170,7 @@ void KConfigTest::initTestCase() cg.writePathEntry("homepathescape", HOMEPATHESCAPE); cg = KConfigGroup(&sc, "Enum Types"); -#if _MSC_VER == 1600 +#if defined(_MSC_VER) && _MSC_VER == 1600 cg.writeEntry("dummy", 42); #else //Visual C++ 2010 throws an Internal Compiler Error here @@ -572,7 +572,7 @@ void KConfigTest::testEnums() //Visual C++ 2010 (compiler version 16.0) throws an Internal Compiler Error //when compiling the code in initTestCase that creates these KConfig entries, //so we can't run this test -#if _MSC_VER == 1600 +#if defined(_MSC_VER) && _MSC_VER == 1600 QSKIP("Visual C++ 2010 can't compile this test"); #endif KConfig sc(TEST_SUBDIR "kconfigtest"); -- cgit v1.2.1