diff --git a/src/shared/proparser/profileparser.cpp b/src/shared/proparser/profileparser.cpp
index 125e09c6733b1c52ac9263937191ebd2c89e15c6..4228ede391e24f7b5cb3f557a4cda657ebc18af5 100644
--- a/src/shared/proparser/profileparser.cpp
+++ b/src/shared/proparser/profileparser.cpp
@@ -88,6 +88,8 @@ void ProFileCache::discardFiles(const QString &prefix)
 
 #define fL1S(s) QString::fromLatin1(s)
 
+namespace { // MSVC2010 doesn't seem to know the semantics of "static" ...
+
 static struct {
     QString strelse;
     QString strfor;
@@ -95,6 +97,8 @@ static struct {
     QString strdefineReplace;
 } statics;
 
+}
+
 void ProFileParser::initialize()
 {
     if (!statics.strelse.isNull())