mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
Improve liblastfm2 export macro
This commit is contained in:
28
thirdparty/liblastfm2/src/global.h
vendored
28
thirdparty/liblastfm2/src/global.h
vendored
@@ -30,25 +30,21 @@
|
|||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
#ifdef Q_CC_MSVC
|
#ifndef LASTFM_LIB_STATIC
|
||||||
#ifdef LASTFM_LIB
|
#ifdef LASTFM_LIB
|
||||||
#define LASTFM_DLLEXPORT __declspec(dllexport)
|
#define LASTFM_DLLEXPORT Q_DECL_EXPORT
|
||||||
#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")))
|
|
||||||
#else
|
#else
|
||||||
|
#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_DLLEXPORT
|
||||||
#define LASTFM_FINGERPRINT_DLLEXPORT
|
#define LASTFM_FINGERPRINT_DLLEXPORT
|
||||||
#endif
|
#endif // LASTFM_LIB_STATIC
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <QMetaEnum>
|
#include <QMetaEnum>
|
||||||
|
Reference in New Issue
Block a user