mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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
|
||||
#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:
|
||||
|
Loading…
Reference in New Issue
Block a user