[gtkmm] Fix using stock items with MSVC



commit 7e4634a01b39a6db181c81cbe725386d084198b2
Author: Armin Burgmeier <armin arbur net>
Date:   Wed Aug 4 19:12:12 2010 +0200

    Fix using stock items with MSVC
    
    2010-08-04  Armin Burgmeier  <armin arbur net>
    
    	Fixed using stock items with MSVC. Bug #625489.
    
    	* gtk/gtkmmconfig.h.in: Make sure we define GTKMM_API to
    	__declspec(dllimport) also with MSVC when building gtkmm.

 ChangeLog            |    7 +++++++
 gtk/gtkmmconfig.h.in |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ebff9df..728a040 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-08-04  Armin Burgmeier  <armin arbur net>
+
+	Fixed using stock items with MSVC. Bug #625489.
+
+	* gtk/gtkmmconfig.h.in: Make sure we define GTKMM_API to
+	__declspec(dllimport) also with MSVC when building gtkmm.
+
 2010-08-02  Murray Cumming  <murrayc murrayc com>
 
 	gdkmm: Regenerated gdk-pixbuf defs from master. No significant changes.
diff --git a/gtk/gtkmmconfig.h.in b/gtk/gtkmmconfig.h.in
index 9975f57..2b11283 100644
--- a/gtk/gtkmmconfig.h.in
+++ b/gtk/gtkmmconfig.h.in
@@ -25,7 +25,7 @@
 #undef GTKMM_STATIC_LIB
 
 /* Enable DLL-specific stuff only when not building a static library */
-#if (!defined(GTKMM_STATIC_LIB) && !defined(__CYGWIN__) && defined(__MINGW32__))
+#if (!defined(GTKMM_STATIC_LIB) && !defined(__CYGWIN__) && defined(_WIN32))
 # define GTKMM_DLL 1
 #endif
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]