Define DLL_EXPORT and _GDK_EXTERN depending on whether we are building a shared or a static library
Static builds on Windows are only supported in the Meson build
This commit is contained in:
@ -230,6 +230,9 @@
|
|||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#mesondefine PACKAGE_VERSION
|
#mesondefine PACKAGE_VERSION
|
||||||
|
|
||||||
|
/* Define when building a shared library for Windows */
|
||||||
|
#mesondefine DLL_EXPORT
|
||||||
|
|
||||||
/* Use NSBundle functions to determine load paths for libraries, translations,
|
/* Use NSBundle functions to determine load paths for libraries, translations,
|
||||||
etc. */
|
etc. */
|
||||||
#mesondefine QUARTZ_RELOCATION
|
#mesondefine QUARTZ_RELOCATION
|
||||||
|
@ -314,11 +314,16 @@
|
|||||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||||
/* #undef _FILE_OFFSET_BITS */
|
/* #undef _FILE_OFFSET_BITS */
|
||||||
|
|
||||||
|
/* Define when building a shared library for Windows */
|
||||||
|
#define DLL_EXPORT 1
|
||||||
|
|
||||||
/* defines how to decorate public symbols while building */
|
/* defines how to decorate public symbols while building */
|
||||||
#ifdef _MSC_VER
|
#ifdef DLL_EXPORT
|
||||||
#define _GDK_EXTERN __declspec (dllexport) extern
|
# ifdef _MSC_VER
|
||||||
#else
|
# define _GDK_EXTERN __declspec (dllexport) extern
|
||||||
#define _GDK_EXTERN __attribute__((visibility("default"))) __declspec (dllexport) extern
|
# else
|
||||||
|
# define _GDK_EXTERN __attribute__((visibility("default"))) __declspec (dllexport) extern
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define for large files, on AIX-style hosts. */
|
/* Define for large files, on AIX-style hosts. */
|
||||||
|
Reference in New Issue
Block a user