From 37da317133f312e39683b2bcd5cdbb5bab165f1b Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 27 May 2026 15:17:20 +0500 Subject: [PATCH] filesystem: tests: fix build on Windows --- filesystem/tests/filesystem_test_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filesystem/tests/filesystem_test_common.h b/filesystem/tests/filesystem_test_common.h index 53cf16ac..848037d1 100644 --- a/filesystem/tests/filesystem_test_common.h +++ b/filesystem/tests/filesystem_test_common.h @@ -13,12 +13,13 @@ #define LoadLibrary( x ) dlopen( x, RTLD_NOW ) #define GetProcAddress( x, y ) dlsym( x, y ) #define FreeLibrary( x ) dlclose( x ) +typedef void *HMODULE; #elif XASH_WIN32 #include #endif // each test program includes this header exactly once, so static linkage is fine -static void *g_hModule; +static HMODULE g_hModule; static FSAPI g_pfnGetFSAPI; static fs_api_t g_fs; static fs_globals_t *g_nullglobals;