1
0
Fork 0
forked from len0rd/rockbox

Fix cutelogger with MSVC.

We're compiling cutelogger directly, not as DLL. Therefore we must not add
__declspec attributes to the header.

Change-Id: I41b87fd4ba34dfbcd0d37245ff1c1f279139bb33
This commit is contained in:
Dominik Riebeling 2013-11-03 11:22:44 +01:00
parent 4d2ce949b3
commit 2b054e6135
2 changed files with 5 additions and 1 deletions

View file

@ -3,10 +3,14 @@
#include <QtCore/qglobal.h>
#if !defined(CUTELOGGER_STATIC)
#if defined(CUTELOGGER_LIBRARY)
# define CUTELOGGERSHARED_EXPORT Q_DECL_EXPORT
#else
# define CUTELOGGERSHARED_EXPORT Q_DECL_IMPORT
#endif
#else
#define CUTELOGGERSHARED_EXPORT
#endif
#endif // CUTELOGGER_GLOBAL_H

View file

@ -153,7 +153,7 @@ dbg {
message("release")
}
DEFINES += RBUTIL _LARGEFILE64_SOURCE
DEFINES += RBUTIL _LARGEFILE64_SOURCE CUTELOGGER_STATIC
# check version of Qt installation
!contains(QT_MAJOR_VERSION, 5):!macx {