Skip to content

Commit

Permalink
fix: include windows.h before Psapi.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alphagocc committed Jun 23, 2024
1 parent f4db375 commit 1b37e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion makespec/BUILDVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
264
265
4 changes: 3 additions & 1 deletion src/core/judgingthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@

#ifdef Q_OS_WIN32

#include <windows.h>
// Don't change the include order
// psapi need type BOOL, which is included in windef.h
#include <Psapi.h>
#include <UserEnv.h>
#include <VersionHelpers.h>
#include <accctrl.h>
#include <aclapi.h>
#include <windows.h>

#endif

Expand Down

0 comments on commit 1b37e87

Please sign in to comment.