aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'autotests/kconfigtest.cpp')
-rw-r--r--autotests/kconfigtest.cpp4
1 files changed, 2 insertions, 2 deletions
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");