[clutter/clutter-1.18] clutter-version.h.in: Refine how CLUTTER_VAR is Defined



commit 2b3fac8b3ddc51b2bef5f294495472ce00924efa
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Mar 21 00:33:10 2014 +0800

    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

 clutter/clutter-version.h.in |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index 0afdc70..eb5398f 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:


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