]> git.lyx.org Git - lyx.git/blobdiff - src/support/debug.h
* layouttranslations.review - remove dupes
[lyx.git] / src / support / debug.h
index a883e67d74c86c69a2ce571e3a9ea46fbe9f94df..a4887db7ae72573f07c588f25d4ae13536e904fa 100644 (file)
 
 #include "support/strfwd.h"
 
+// Forward definitions do not work with libc++
+// but ios_base has already been defined in strfwd
+// if compiling with it
+#ifndef  _LIBCPP_VERSION
 namespace std {
 
 class ios_base;
@@ -25,6 +29,7 @@ template<typename CharT, typename Traits> class basic_streambuf;
 typedef basic_streambuf<char, char_traits<char> > streambuf;
 
 }
+#endif
 
 
 namespace lyx {
@@ -157,7 +162,7 @@ public:
        bool enabled() const { return enabled_; }
 
        /// Returns second stream
-       std::ostream & secondStream() { return *second_stream_; };
+       std::ostream & secondStream() { return *second_stream_; }
        /// Sets second stream
        void setSecondStream(std::ostream * os) 
                { second_enabled_ = (second_stream_ = os); }