From 7d711f812150f7726311ecddd7ee7bf182316859 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 17 Feb 2024 15:37:18 -0600 Subject: [PATCH] Fix running on Windows XP Newer mingw-w64 changed default Windows version compatibility. Need to specify older behavior for EnumProcesses() to avoid "missing K32EnumProcesses()" runtime error. --- code/sys/sys_win32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/sys/sys_win32.c b/code/sys/sys_win32.c index d5e1c637..7d806a16 100644 --- a/code/sys/sys_win32.c +++ b/code/sys/sys_win32.c @@ -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"