mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-26 11:56:46 -08:00
Add support for Microsoft Visual Studio buildchain
* Use C++17 when using MSVC compiler * Remove unneeded header files and macros * Removed unnecessary Yubikey cmake file * Enhance release tool * Updated INSTALL.md
This commit is contained in:
1 parent
24a23ce66e
commit
0c6587b5b7
19 files changed
+174
-145
No files matched your search
@@ -26,9 +26,8 @@
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#include <winsock2.h>
|
||||
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
@@ -49,8 +48,13 @@ NativeMessagingProxy::NativeMessagingProxy()
|
||||
void NativeMessagingProxy::setupStandardInput()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
#ifdef Q_CC_MSVC
|
||||
_setmode(_fileno(stdin), _O_BINARY);
|
||||
_setmode(_fileno(stdout), _O_BINARY);
|
||||
#else
|
||||
setmode(fileno(stdin), _O_BINARY);
|
||||
setmode(fileno(stdout), _O_BINARY);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
QtConcurrent::run([this] {
|
||||
|
||||
Reference in new issue
Block a user