mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
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... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8771 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8756f3a7f0
commit
3cac00e714
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -16,6 +16,11 @@
|
||||
|
||||
#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,
|
||||
|
Loading…
Reference in New Issue
Block a user