# HG changeset patch
# User Adrian Buehlmann <[email protected]>
# Date 1245181771 -7200
# Node ID bf3201442a6c4eda9670ee9db43bf09fd971a4be
# Parent  d65adf260359a0556ec3cccc649d1bd1aede8542
shellext: use THG_DEBUG to enable debug output

environment var is still the same

diff --git a/win32/shellext/Makefile b/win32/shellext/Makefile
--- a/win32/shellext/Makefile
+++ b/win32/shellext/Makefile
@@ -31,7 +31,7 @@ LDFLAGS_DIRSTATE=$(BASE_LDFLAGS) \
 
 # set DEBUG env var to 1 to enable debug trace
 ifeq ($(DEBUG),1)
-CXXFLAGS+=-D_DEBUG
+CXXFLAGS+=-DTHG_DEBUG
 endif
 
 all: THgShell.dll dirstate.exe
diff --git a/win32/shellext/stdafx.h b/win32/shellext/stdafx.h
--- a/win32/shellext/stdafx.h
+++ b/win32/shellext/stdafx.h
@@ -30,7 +30,7 @@ typedef char wxChar;
 
 #define ResultFromShort(i)  ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, 
(USHORT)(i)))
 
-#ifdef _DEBUG
+#ifdef THG_DEBUG
     #include <sstream>
 
     // TDEBUG_TRACE() prints debugging messages to Windows' debugger display.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to