From: <ar...@us...> - 2006-11-08 16:05:51
|
Revision: 563 http://svn.sourceforge.net/xml-cppdom/?rev=563&view=rev Author: aronb Date: 2006-11-08 08:05:43 -0800 (Wed, 08 Nov 2006) Log Message: ----------- - Handle case where we want _DEBUG defined but use the release runtime. Modified Paths: -------------- trunk/cppdom/config.h Modified: trunk/cppdom/config.h =================================================================== --- trunk/cppdom/config.h 2006-11-08 14:39:57 UTC (rev 562) +++ trunk/cppdom/config.h 2006-11-08 16:05:43 UTC (rev 563) @@ -77,7 +77,7 @@ CPPDOM_STRINGIZE(CPPDOM_VERSION_MINOR) "_" \ CPPDOM_STRINGIZE(CPPDOM_VERSION_PATCH) -# if defined(_DEBUG) +# if defined(_DEBUG) && !defined(_USE_RELEASE_RUNTIME) # define CPPDOM_LIB_RT_OPT "_d" # else # define CPPDOM_LIB_RT_OPT "" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pat...@us...> - 2007-06-25 21:58:52
|
Revision: 592 http://svn.sourceforge.net/xml-cppdom/?rev=592&view=rev Author: patrickh Date: 2007-06-25 14:58:54 -0700 (Mon, 25 Jun 2007) Log Message: ----------- Restored the ability to use automatic linking with static libraries on Windows. I broke this in Revision 591. Revision Links: -------------- http://svn.sourceforge.net/xml-cppdom/?rev=591&view=rev Modified Paths: -------------- trunk/cppdom/config.h Modified: trunk/cppdom/config.h =================================================================== --- trunk/cppdom/config.h 2007-06-25 21:10:29 UTC (rev 591) +++ trunk/cppdom/config.h 2007-06-25 21:58:54 UTC (rev 592) @@ -46,9 +46,8 @@ #define CPPDOM_CONFIG_H // ----------------------------------- -// win32 DLL configuration -#if (defined(WIN32) || defined(WIN64)) && \ - (defined(CPPDOM_AUTO_LINK) || defined(CPPDOM_DYN_LINK)) +// win32 +#if defined(WIN32) || defined(WIN64) // switch some warnings off # pragma warning( disable: 4786 4275 4251 ) @@ -59,9 +58,15 @@ # define CPPDOM_EXPORT(ret) __declspec(dllexport) ret # define CPPDOM_CLASS __declspec(dllexport) # else -//# define CPPDOM_EXPORT(ret) __declspec(dllimport) ret __stdcall -# define CPPDOM_EXPORT(ret) __declspec(dllimport) ret -# define CPPDOM_CLASS __declspec(dllimport) +// Only define the dllimport bits if dynamic linking has been requested. +# if defined(CPPDOM_DYN_LINK) +//# define CPPDOM_EXPORT(ret) __declspec(dllimport) ret __stdcall +# define CPPDOM_EXPORT(ret) __declspec(dllimport) ret +# define CPPDOM_CLASS __declspec(dllimport) +# else +# define CPPDOM_EXPORT(ret) ret +# define CPPDOM_CLASS +# endif // Use automatic linking when building with Visual C++ and when requested to // do so. Define either CPPDOM_AUTO_LINK or CPPDOM_DYN_LINK to enable automatic @@ -100,7 +105,7 @@ # endif /* defined(_MSC_VER) && (defined(CPPDOM_AUTO_LINK) || defined(CPPDOM_DYN_LINK)) */ # endif /* defined(CPPDOM_EXPORTS) */ -// UNIX handling and static linking on Windows. +// Non-Windows handling. #else # define CPPDOM_EXPORT(ret) ret # define CPPDOM_CLASS This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <pat...@us...> - 2007-08-01 15:22:09
|
Revision: 623 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=623&view=rev Author: patrickh Date: 2007-08-01 08:22:12 -0700 (Wed, 01 Aug 2007) Log Message: ----------- There is no longer an "_h" variant on Windows. Modified Paths: -------------- trunk/cppdom/config.h Modified: trunk/cppdom/config.h =================================================================== --- trunk/cppdom/config.h 2007-08-01 15:06:44 UTC (rev 622) +++ trunk/cppdom/config.h 2007-08-01 15:22:12 UTC (rev 623) @@ -88,12 +88,8 @@ # define CPPDOM_DEBUG # endif -# if defined(CPPDOM_DEBUG) -# if defined(_DEBUG) -# define CPPDOM_LIB_RT_OPT "_d" -# else -# define CPPDOM_LIB_RT_OPT "_h" -# endif +# if defined(CPPDOM_DEBUG) && defined(_DEBUG) +# define CPPDOM_LIB_RT_OPT "_d" # else # define CPPDOM_LIB_RT_OPT "" # endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |