libgimpbase: fix Win32 import/export of the gimp_foo_version variables

My last "cleanup" of this stuff was obviously completely bogus.
This commit is contained in:
Michael Natterer 2011-08-29 20:27:56 +02:00
parent fe20e7b181
commit a1b69f8f9e
2 changed files with 5 additions and 3 deletions

View File

@ -31,6 +31,8 @@
#include <glib-object.h>
#include <glib/gstdio.h>
#define __GIMP_BASE_C__
#undef GIMP_DISABLE_DEPRECATED
#include "gimpbasetypes.h"

View File

@ -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