SVN: backtracexx/backtracexx.hpp

pluto pluto at pld-linux.org
Thu Nov 15 10:02:58 CET 2007


Author: pluto
Date: Thu Nov 15 10:02:58 2007
New Revision: 9056

Modified:
   backtracexx/backtracexx.hpp
Log:
- import/export decls only for dll.

Modified: backtracexx/backtracexx.hpp
==============================================================================
--- backtracexx/backtracexx.hpp	(original)
+++ backtracexx/backtracexx.hpp	Thu Nov 15 10:02:58 2007
@@ -7,12 +7,18 @@
 
 #if defined( WIN32 ) || defined( WIN64 )
 
+#ifdef _DLL	//	defined when /MD or /MDd (Multithread DLL) is specified.
+
 #ifdef BACKTRACEXX_EXPORTS
 #define BACKTRACEXX_EXPORT	__declspec( dllexport )
 #else
 #define BACKTRACEXX_EXPORT	__declspec( dllimport )
 #endif
 
+#else
+#define BACKTRACEXX_EXPORT
+#endif
+
 struct _CONTEXT;
 typedef struct _CONTEXT* PCONTEXT;
 


More information about the pld-cvs-commit mailing list