mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
* Fix recursive dllmacro.h inclusion.
This commit is contained in:
parent
08f41b796c
commit
318ed169eb
@ -1 +1 @@
|
||||
53
|
||||
55
|
@ -4,7 +4,7 @@ include( ${QT_USE_FILE} )
|
||||
add_definitions( ${QT_DEFINITIONS} )
|
||||
add_definitions( -DQT_PLUGIN )
|
||||
add_definitions( -DQT_SHARED )
|
||||
add_definitions( -DDLLEXPORT_PRO )
|
||||
add_definitions( -DSIPDLLEXPORT_PRO )
|
||||
|
||||
set( jabberSources
|
||||
jabber.cpp
|
||||
|
@ -4,9 +4,9 @@
|
||||
#include "sip/SipPlugin.h"
|
||||
#include "jabber_p.h"
|
||||
|
||||
#include "dllmacro.h"
|
||||
#include "../sipdllmacro.h"
|
||||
|
||||
class DLLEXPORT JabberPlugin : public SipPlugin
|
||||
class SIPDLLEXPORT JabberPlugin : public SipPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( SipPlugin )
|
||||
|
@ -49,9 +49,9 @@
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "dllmacro.h"
|
||||
#include "../sipdllmacro.h"
|
||||
|
||||
class DLLEXPORT Jabber_p :
|
||||
class SIPDLLEXPORT Jabber_p :
|
||||
public QObject,
|
||||
public gloox::ConnectionListener,
|
||||
public gloox::RosterListener,
|
||||
|
14
src/sip/sipdllmacro.h
Normal file
14
src/sip/sipdllmacro.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef SIPDLLMACRO_H
|
||||
#define SIPDLLMACRO_H
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef SIPDLLEXPORT_PRO
|
||||
#define SIPDLLEXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define SIPDLLEXPORT __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define SIPDLLEXPORT
|
||||
#endif
|
||||
|
||||
#endif
|
@ -4,7 +4,7 @@ include( ${QT_USE_FILE} )
|
||||
add_definitions( ${QT_DEFINITIONS} )
|
||||
add_definitions( -DQT_PLUGIN )
|
||||
add_definitions( -DQT_SHARED )
|
||||
add_definitions( -DDLLEXPORT_PRO )
|
||||
add_definitions( -DSIPDLLEXPORT_PRO )
|
||||
|
||||
set( zeroconfSources
|
||||
zeroconf.cpp
|
||||
|
@ -13,9 +13,9 @@
|
||||
#include "database/database.h"
|
||||
#include "network/servent.h"
|
||||
|
||||
#include "dllmacro.h"
|
||||
#include "../sipdllmacro.h"
|
||||
|
||||
class DLLEXPORT Node : public QObject
|
||||
class SIPDLLEXPORT Node : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -53,7 +53,7 @@ private:
|
||||
};
|
||||
|
||||
|
||||
class DLLEXPORT TomahawkZeroconf : public QObject
|
||||
class SIPDLLEXPORT TomahawkZeroconf : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -4,9 +4,9 @@
|
||||
#include "sip/SipPlugin.h"
|
||||
#include "tomahawkzeroconf.h"
|
||||
|
||||
#include "dllmacro.h"
|
||||
#include "../sipdllmacro.h"
|
||||
|
||||
class DLLEXPORT ZeroconfPlugin : public SipPlugin
|
||||
class SIPDLLEXPORT ZeroconfPlugin : public SipPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES( SipPlugin )
|
||||
|
Loading…
x
Reference in New Issue
Block a user