summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-03-21 00:33:10 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-03-21 00:33:10 +0800
commit2b3fac8b3ddc51b2bef5f294495472ce00924efa (patch)
tree2492c48675a59a5ccd186b5a400bda22461502c4
parentd42cb2a4d3027b867625dd90afe391e3cc3027fe (diff)
downloadclutter-2b3fac8b3ddc51b2bef5f294495472ce00924efa.tar.gz
clutter-version.h.in: Refine how CLUTTER_VAR is Defined
Define CLUTTER_VAR like how it is done on GLib, so that the version constants can be exported and imported appropriately on different compilers. https://bugzilla.gnome.org/show_bug.cgi?id=726762
-rw-r--r--clutter/clutter-version.h.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index 0afdc70b3..eb5398f26 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -258,7 +258,19 @@ G_BEGIN_DECLS
#define _CLUTTER_EXTERN extern
#endif
-#define CLUTTER_VAR _CLUTTER_EXTERN
+#ifdef CLUTTER_WINDOWING_WIN32
+# ifdef CLUTTER_COMPILATION
+# ifdef DLL_EXPORT
+# define CLUTTER_VAR __declspec(dllexport)
+# else
+# define CLUTTER_VAR extern
+# endif
+# else
+# define CLUTTER_VAR __declspec(dllimport)
+# endif
+#else
+# define CLUTTER_VAR _CLUTTER_EXTERN
+#endif
/**
* clutter_major_version: