mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
Other: fix for windows build and default to MSVC toolchain on Windows.
This commit is contained in:
@ -27,4 +27,11 @@
|
||||
#include <AppController.h>
|
||||
|
||||
|
||||
#if defined(Q_OS_WIN32) && defined(ERROR)
|
||||
// The folks at Microsoft have decided that it was OK to `#define ERROR 0` in wingdi.h. It is not OK, because
|
||||
// any occurrence of ERROR, even scoped, will be substituted. For instance Log::Level::ERROR (case imposed by gRPC).
|
||||
#undef ERROR
|
||||
#endif
|
||||
|
||||
|
||||
#endif // BRIDGE_GUI_PCH_H
|
||||
|
||||
Reference in New Issue
Block a user