1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

Fix compilation on Windows

This commit is contained in:
David Sansome 2012-03-09 18:39:40 +00:00
parent d62d874a89
commit 1fc8b85ff6
3 changed files with 2 additions and 11 deletions

View File

@ -77,4 +77,3 @@ QT4_WRAP_CPP(LIBMYGPO_QT_MOC_SRC ${LIBMYGPO_QT_MOC_H} )
add_library( mygpo-qt STATIC ${LIBMYGPO_QT_SRC} ${LIBMYGPO_QT_MOC_SRC} )
target_link_libraries( mygpo-qt ${QJSON_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} )
set_target_properties( mygpo-qt PROPERTIES VERSION ${MYGPO_QT_VERSION} SOVERSION ${MYGPO_QT_SONAME} DEFINE_SYMBOL MYGPO_MAKEDLL)

View File

@ -25,14 +25,6 @@
#include <QtCore/qglobal.h>
#ifndef MYGPO_EXPORT
# if defined(MYGPO_MAKEDLL)
/* We are building this library */
# define MYGPO_EXPORT Q_DECL_EXPORT
# else
/* We are using this library */
# define MYGPO_EXPORT Q_DECL_IMPORT
# endif
#endif
#define MYGPO_EXPORT
#endif // MYGPO_EXPORT_H

View File

@ -486,7 +486,7 @@ int GetThreadId() {
bool IsLaptop() {
#ifdef Q_OS_WIN
LPSYSTEM_POWER_STATUS status;
SYSTEM_POWER_STATUS status;
if (!GetSystemPowerStatus(&status)) {
return false;
}