From 1af77c2e6ae6663878af79d8384b46d19ae9e626 Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Wed, 17 Jul 2024 18:36:50 +0200 Subject: [PATCH] Fix MinGW build (#323) --- Quake/sys_sdl_win.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Quake/sys_sdl_win.c b/Quake/sys_sdl_win.c index ba15b9040..d9fdb79c2 100644 --- a/Quake/sys_sdl_win.c +++ b/Quake/sys_sdl_win.c @@ -29,6 +29,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif +#ifdef _WIN32_WINNT +#undef _WIN32_WINNT +#endif +#define _WIN32_WINNT 0x0600 #include #include #include @@ -557,7 +561,7 @@ qboolean Sys_Explore (const char *path) if (FAILED (hr)) goto cleanup_folder; - hr = SHOpenFolderAndSelectItems (folder, 1, &file, 0); + hr = SHOpenFolderAndSelectItems (folder, 1, (LPCITEMIDLIST *) &file, 0); if (SUCCEEDED (hr)) result = true;