mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Add ifdefs arround native windows code to fix linux build
- There was some native windows code not properly covered by ifdefs. - handlePushToTalk() is not yet implemented on linux. Add a dummy.
This commit is contained in:
@@ -13,7 +13,10 @@
|
||||
#include <QMap>
|
||||
#include <QSet>
|
||||
#include <QString>
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace BlackCore
|
||||
|
||||
CVoiceVatlib *CVoiceVatlib::CKeyboard::s_voice = nullptr;
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#if defined(Q_OS_WIN)
|
||||
|
||||
HHOOK CVoiceVatlib::CKeyboard::s_keyboardHook = nullptr;
|
||||
|
||||
@@ -72,6 +72,8 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
void CVoiceVatlib::handlePushToTalk() {}
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user