MSVC gives a warning when using #warning. However, it does
not show the actual warning.
/// We are changing that to close all wiew one by one.
/// FIXME: verify if the default implementation is enough now.
#ifdef QT_NO_SESSIONMANAGER
- #warning Qt is compiled without session manager
+ #ifndef _MSC_VER
+ #warning Qt is compiled without session manager
+ #else
+ #pragma message("warning: Qt is compiled without session manager")
+ #endif
(void) sm;
#else
if (sm.allowsInteraction() && !closeAllViews())
#define LYX_FORMAT_TEX2LYX 428 // uwestoehr: rotated table cells
#if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
+#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
#endif
//} // namespace lyx