]> git.lyx.org Git - features.git/commitdiff
Fix C++11 test
authorGeorg Baum <baum@lyx.org>
Tue, 29 Apr 2014 19:00:02 +0000 (21:00 +0200)
committerGeorg Baum <baum@lyx.org>
Tue, 29 Apr 2014 19:00:02 +0000 (21:00 +0200)
Thanks Vincent for noticing. The old test was slightly off, the C++98 standard
guarantees that __cplusplus is defined as 199711L, not 19971L.

src/support/strfwd.h
src/tex2lyx/Parser.h

index de8588cabce30c8517d48fb5132bd4d42dc7707a..e40ec1c4b8b0beeddbced9f404507918972e45b0 100644 (file)
@@ -17,7 +17,7 @@
 // if libc++ is used (rather than libstdc++) - we first
 // check if we have at least a c++03 standard before
 // including the file
-#if (__cplusplus > 19971L)
+#if (__cplusplus > 199711L)
 #include <ciso646>
 #endif
 
index 57a5cb1bf8557618b36aa7e9ad66a1ee32908a25..9778765ed6f2dce76c8c244f16e13576a64ae9ea 100644 (file)
@@ -125,7 +125,7 @@ public:
 
        iparserdocstream(idocstream & is) : is_(is) {}
 
-#if (__cplusplus > 19971L)
+#if (__cplusplus > 199711L)
        /// Like std::istream::operator bool()
        /// Do not convert is_ implicitly to bool, since that is forbidden in C++11.
        explicit operator bool() const { return s_.empty() ? !is_.fail() : true; }