]> git.lyx.org Git - lyx.git/blobdiff - src/support/debug.h
Fix build with GNU libstdc++ C++11 ABI
[lyx.git] / src / support / debug.h
index a4887db7ae72573f07c588f25d4ae13536e904fa..f8ee6591b197e688c62b02d8d9db7ddbb9cc4a60 100644 (file)
@@ -20,7 +20,7 @@
 // Forward definitions do not work with libc++
 // but ios_base has already been defined in strfwd
 // if compiling with it
-#ifndef  _LIBCPP_VERSION
+#ifndef USE_LLVM_LIBCPP
 namespace std {
 
 class ios_base;
@@ -142,7 +142,7 @@ inline void operator|=(Debug::Type & d1, Debug::Type d2)
 class LyXErr
 {
 public:
-       LyXErr(): enabled_(true), second_enabled_(false) {}
+       LyXErr(): dt_(Debug::NONE), enabled_(true), second_enabled_(false) {}
        
        /// Disable the stream completely
        void disable();