]> git.lyx.org Git - lyx.git/blobdiff - src/support/debugstream.h
make "make distcheck" work
[lyx.git] / src / support / debugstream.h
index 6b7334477b9c1ecb2f2c7481bc90272c89f22d4d..c41d4d94b175988c6c2dfff91fe5e68ca6e45fe4 100644 (file)
 
 #include <boost/test/detail/nullstream.hpp>
 
+#ifdef DEBUG
+# define TEMPORARY_DEBUG_MACRO DEBUG
+# undef DEBUG
+#endif
+
 struct debug_trait {
        enum type {
                NONE   = 0,
@@ -35,6 +40,11 @@ struct debug_trait {
        }
 };
 
+#ifdef TEMPORARY_DEBUG_MACRO
+# define DEBUG TEMPORARY_DEBUG_MACRO
+# undef TEMPORARY_DEBUG_MACRO
+#endif
+
 
 template <class dtrait,
          class charT = char,