]> git.lyx.org Git - features.git/commitdiff
msvc: Proper fix for compilation of TexRow
authorGuillaume Munch <gm@lyx.org>
Tue, 20 Oct 2015 17:18:28 +0000 (19:18 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 20 Oct 2015 19:29:19 +0000 (21:29 +0200)
This bug in MSVC 10 was fixed at e948caf6, but the workaround belongs to
strfwd.h.

Thanks Vincent and Georg.

src/support/docstream.h
src/support/strfwd.h

index 52916b02239fcab9daffed0486c1cfe0b26f5eab..108d00e0f63d243a24a329d601d792f708bb1523 100644 (file)
 
 #include "support/docstring.h"
 
-#if defined(_MSC_VER) && (_MSC_VER >= 1600) 
-// Ugly workaround for MSVC10 STL bug:
-// std::numpunct has a hardcoded dllimport in definition, but we wanna it with 32 bit 
-// so we can't import it and must define it but then the compiler complains.
-#include "support/numpunct_lyx_char_type.h"
-#endif
-
 #include <fstream>
 #include <sstream>
 
index 8419b513519b2d2d017247686fbac6169478d428..30e1c092f07675fe9104586c5adb09cacd0f1658 100644 (file)
@@ -61,6 +61,15 @@ typedef basic_ostringstream<char, char_traits<char>, allocator<char> > ostringst
 
 #endif
 
+
+// Ugly workaround for MSVC10 STL bug:
+// std::numpunct has a hardcoded dllimport in definition, but we wanna it with 32 bit 
+// so we can't import it and must define it but then the compiler complains.
+#if defined(_MSC_VER) && (_MSC_VER >= 1600) 
+#include "support/numpunct_lyx_char_type.h"
+#endif
+
+
 namespace lyx {
 
 /**