Skip to content

Commit

Permalink
Fix running on Windows XP
Browse files Browse the repository at this point in the history
Newer mingw-w64 changed default Windows version compatibility.
Need to specify older behavior for EnumProcesses() to avoid "missing
K32EnumProcesses()" runtime error.
  • Loading branch information
zturtleman committed Feb 17, 2024
1 parent 9881c56 commit 7d711f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/sys/sys_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/

// Use EnumProcesses() with Windows XP compatibility
#define PSAPI_VERSION 1

#include "../qcommon/q_shared.h"
#include "../qcommon/qcommon.h"
#include "sys_local.h"
Expand Down

0 comments on commit 7d711f8

Please sign in to comment.