that protect against a name clash with a macro DEBUG.
Such a macro is defined by the Qt library...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8771
a592a061-630c-0410-9148-
cb99ea01b6c8
+2004-05-20 Angus Leeming <leeming@lyx.org>
+
+ * debugstream.h: wrap the definition of debug_trait::DEBUG with
+ preprocessor guards that protect against a name clash with a
+ macro DEBUG. Such a macro is defined by the Qt library...
+
2004-04-27 Angus Leeming <leeming@lyx.org>
* path_defines.{h,C.in}: expose top_srcdir, renamed from
#include <boost/test/detail/nullstream.hpp>
+#ifdef DEBUG
+# define TEMPORARY_DEBUG_MACRO DEBUG
+# undef DEBUG
+#endif
+
struct debug_trait {
enum type {
NONE = 0,
}
};
+#ifdef TEMPORARY_DEBUG_MACRO
+# define DEBUG TEMPORARY_DEBUG_MACRO
+# undef TEMPORARY_DEBUG_MACRO
+#endif
+
template <class dtrait,
class charT = char,