mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Improve liblastfm2 export macro
This commit is contained in:
30
thirdparty/liblastfm2/src/global.h
vendored
30
thirdparty/liblastfm2/src/global.h
vendored
@@ -30,25 +30,21 @@
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
#ifdef Q_CC_MSVC
|
||||
#ifdef LASTFM_LIB
|
||||
#define LASTFM_DLLEXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define LASTFM_DLLEXPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef LASTFM_FINGERPRINT_LIB
|
||||
#define LASTFM_FINGERPRINT_DLLEXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define LASTFM_FINGERPRINT_DLLEXPORT __declspec(dllimport)
|
||||
#endif
|
||||
#elif __GNUC__ >= 4
|
||||
#define LASTFM_DLLEXPORT __attribute__ ((visibility("default")))
|
||||
#define LASTFM_FINGERPRINT_DLLEXPORT __attribute__ ((visibility("default")))
|
||||
#ifndef LASTFM_LIB_STATIC
|
||||
#ifdef LASTFM_LIB
|
||||
#define LASTFM_DLLEXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define LASTFM_DLLEXPORT
|
||||
#define LASTFM_FINGERPRINT_DLLEXPORT
|
||||
#define LASTFM_DLLEXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#ifdef LASTFM_FINGERPRINT_LIB
|
||||
#define LASTFM_FINGERPRINT_DLLEXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define LASTFM_FINGERPRINT_DLLEXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
#else // LASTFM_LIB_STATIC
|
||||
#define LASTFM_DLLEXPORT
|
||||
#define LASTFM_FINGERPRINT_DLLEXPORT
|
||||
#endif // LASTFM_LIB_STATIC
|
||||
|
||||
|
||||
#include <QMetaEnum>
|
||||
|
Reference in New Issue
Block a user