From: Lasse Collin Date: Sun, 8 Nov 2015 18:16:10 +0000 (+0200) Subject: tuklib_physmem: Hopefully silence a warning on Windows. X-Git-Tag: v5.3.1alpha~45 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=faf302137e54d605b44ecf0373cb51a6403a2de1;p=thirdparty%2Fxz.git tuklib_physmem: Hopefully silence a warning on Windows. --- diff --git a/src/common/tuklib_physmem.c b/src/common/tuklib_physmem.c index cd2437d8..4053ad00 100644 --- a/src/common/tuklib_physmem.c +++ b/src/common/tuklib_physmem.c @@ -86,7 +86,8 @@ tuklib_physmem(void) // GlobalMemoryStatusEx() conditionally. HMODULE kernel32 = GetModuleHandle("kernel32.dll"); if (kernel32 != NULL) { - BOOL (WINAPI *gmse)(LPMEMORYSTATUSEX) = GetProcAddress( + typedef BOOL (WINAPI *gmse_type)(LPMEMORYSTATUSEX); + gmse_type gmse = (gmse_type)GetProcAddress( kernel32, "GlobalMemoryStatusEx"); if (gmse != NULL) { MEMORYSTATUSEX meminfo;