[gimp] libgimpbase: fix Win32 import/export of the gimp_foo_version variables



commit a1b69f8f9ede96c55c60b21edc6aeb5335df3ea4
Author: Michael Natterer <mitch gimp org>
Date:   Mon Aug 29 20:27:56 2011 +0200

    libgimpbase: fix Win32 import/export of the gimp_foo_version variables
    
    My last "cleanup" of this stuff was obviously completely bogus.

 libgimpbase/gimpenv.c |    2 ++
 libgimpbase/gimpenv.h |    6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libgimpbase/gimpenv.c b/libgimpbase/gimpenv.c
index e00baaf..683045a 100644
--- a/libgimpbase/gimpenv.c
+++ b/libgimpbase/gimpenv.c
@@ -31,6 +31,8 @@
 #include <glib-object.h>
 #include <glib/gstdio.h>
 
+#define __GIMP_BASE_C__
+
 #undef GIMP_DISABLE_DEPRECATED
 #include "gimpbasetypes.h"
 
diff --git a/libgimpbase/gimpenv.h b/libgimpbase/gimpenv.h
index deeda35..d156303 100644
--- a/libgimpbase/gimpenv.h
+++ b/libgimpbase/gimpenv.h
@@ -33,11 +33,11 @@ G_BEGIN_DECLS
 
 
 #ifdef G_OS_WIN32
-#  ifdef GIMP_BASE_COMPILATION
+#  ifdef __GIMP_ENV_C__
 #    define GIMPVAR __declspec(dllexport)
-#  else  /* !GIMP_BASE_COMPILATION */
+#  else  /* !__GIMP_ENV_C__ */
 #    define GIMPVAR extern __declspec(dllimport)
-#  endif /* !GIMP_BASE_COMPILATION */
+#  endif /* !__GIMP_ENV_C__ */
 #else  /* !G_OS_WIN32 */
 #  define GIMPVAR extern
 #endif



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