-//#warning "tex2lyx produces an out of date file format."
-//#warning "Please update tex2lyx as soon as possible, since it depends implicitly"
-//#warning "on the current file format in some places (this causes bugs like #7780)."
+#ifndef _MSC_VER
+#warning "tex2lyx produces an out of date file format."
+#warning "Please update tex2lyx as soon as possible, since it depends implicitly"
+#warning "on the current file format in some places (this causes bugs like #7780)."
+#else
+#pragma message("warning: tex2lyx produces an out of date file format. " \
+ "Please update tex2lyx as soon as possible, since it depends implicitly " \
+ "on the current file format in some places (this causes bugs like #7780).")
+#endif