]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
tuklib_physmem: Hopefully silence a warning on Windows.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 8 Nov 2015 18:16:10 +0000 (20:16 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 8 Nov 2015 18:16:10 +0000 (20:16 +0200)
src/common/tuklib_physmem.c

index cd2437d8c7d59788a62f2764e8e4a2fb3cba70df..4053ad006a645be28182f920d108b109dcf04ef8 100644 (file)
@@ -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;