-// if ( cond )
-// wxLogError("!!!");
-//
-// now provokes "suggest explicit braces to avoid ambiguous 'else'"
-// warnings from g++ 4.3 and later with -Wparentheses on but they can be
-// easily fixed by adding curly braces around wxLogError() and at least
-// the code still does do the right thing.
+// Note 2: Unfortunately we can't use the same solution for all compilers
+// because the loop-based one results in problems with MSVC6 due to its
+// wrong (pre-C++98) rules for the scope of the variables declared
+// inside the loop, as this prevents us from using wxLogXXX() in switch
+// statement clauses ("initialization of loopvar skipped by case"). So
+// for now, i.e. while we still support VC6, use the previous solution
+// for it (FIXME-VC6).
+#ifdef __VISUALC6__