mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
Improve liblastfm2 export macro
This commit is contained in:
parent
6483c55749
commit
a56ca4ddfc
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user