Skip to content

Commit 07d3931

Browse files
committed
Fix compilation on MSVC
C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(297): error C2143: syntax error: missing ')' before '*' C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(297): error C2143: syntax error: missing ';' before '*' C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(297): error C2059: syntax error: ')' C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(297): error C2238: unexpected token(s) preceding ';' C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(298): error C2143: syntax error: missing ')' before '*' C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(298): error C2143: syntax error: missing ';' before '*' C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(298): error C2086: 'DWORD _OLESTREAMVTBL::CALLBACK': redefinition C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(298): error C2059: syntax error: ')' C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um\Ole2.h(298): error C2238: unexpected token(s) preceding ';' Looks like comdef.h must be included after the other windows headers.
1 parent 6e90eda commit 07d3931

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qtkeychain/keychain_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#include "keychain_p.h"
1010
#include "plaintextstore_p.h"
1111

12-
#include <comdef.h>
1312
#include <windows.h>
1413
#include <wincred.h>
1514
#include <wincrypt.h>
15+
#include <comdef.h>
1616

1717
#include <cmath>
1818
#include <memory>

0 commit comments

Comments
 (0)