aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigtest.cpp
diff options
context:
space:
mode:
authorAlex Richardson <arichardson.kde@gmail.com>2014-07-01 20:33:59 +0200
committerAlex Richardson <arichardson.kde@gmail.com>2014-07-01 20:49:57 +0200
commit04927f3f6146b1f4b4916f3de9e3e5947e195e20 (patch)
treee35543e73d5787c59a2e45f172eefbaa3e8e87fc /autotests/kconfigtest.cpp
parentae51450ea64970dcdc544185d68e1e73fb390caa (diff)
downloadkconfig-04927f3f6146b1f4b4916f3de9e3e5947e195e20.tar.gz
kconfig-04927f3f6146b1f4b4916f3de9e3e5947e195e20.tar.bz2
Fix compiler warning due to undefined macro
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");