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
This commit is contained in:
Chun-wei Fan 2014-03-21 00:33:10 +08:00
parent d42cb2a4d3
commit 2b3fac8b3d

View File

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