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:
parent
d62d874a89
commit
1fc8b85ff6
1
3rdparty/libmygpo-qt/CMakeLists.txt
vendored
1
3rdparty/libmygpo-qt/CMakeLists.txt
vendored
@ -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)
|
||||
|
10
3rdparty/libmygpo-qt/mygpo_export.h
vendored
10
3rdparty/libmygpo-qt/mygpo_export.h
vendored
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user