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:
parent
d42cb2a4d3
commit
2b3fac8b3d
@ -258,7 +258,19 @@ G_BEGIN_DECLS
|
|||||||
#define _CLUTTER_EXTERN extern
|
#define _CLUTTER_EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#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
|
# define CLUTTER_VAR _CLUTTER_EXTERN
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_major_version:
|
* clutter_major_version:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user