From: <pat...@us...> - 2007-06-26 16:44:14
|
Revision: 604 http://svn.sourceforge.net/xml-cppdom/?rev=604&view=rev Author: patrickh Date: 2007-06-26 09:44:12 -0700 (Tue, 26 Jun 2007) Log Message: ----------- If _DEBUG is defined, that implies the need for CPPDOM_DEBUG to be defined. This makes it very easy for someone to make a debug build (one that links against the Visual C++ debug runtime) of code using CppDOM since _DEBUG will be defined implicitly by using /MDd. Automatic linking takes care of the rest. Modified Paths: -------------- trunk/cppdom/config.h Modified: trunk/cppdom/config.h =================================================================== --- trunk/cppdom/config.h 2007-06-26 16:32:48 UTC (rev 603) +++ trunk/cppdom/config.h 2007-06-26 16:44:12 UTC (rev 604) @@ -83,6 +83,11 @@ CPPDOM_STRINGIZE(CPPDOM_VERSION_MINOR) "_" \ CPPDOM_STRINGIZE(CPPDOM_VERSION_PATCH) +// Defining _DEBUG implies the need for CPPDOM_DEBUG. +# if defined(_DEBUG) && ! defined(CPPDOM_DEBUG) +# define CPPDOM_DEBUG +# endif + # if defined(CPPDOM_DEBUG) # if defined(_DEBUG) # define CPPDOM_LIB_RT_OPT "_d" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |