aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2015-11-08 20:16:10 +0200
committerLasse Collin <lasse.collin@tukaani.org>2015-11-08 20:16:10 +0200
commitfaf302137e54d605b44ecf0373cb51a6403a2de1 (patch)
treecd58a33a8e88caa9449dbe3cc268bf70f9e3e2a2
parentUpdate THANKS. (diff)
downloadxz-faf302137e54d605b44ecf0373cb51a6403a2de1.tar.xz
tuklib_physmem: Hopefully silence a warning on Windows.
Diffstat (limited to '')
-rw-r--r--src/common/tuklib_physmem.c3
1 files changed, 2 insertions, 1 deletions
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;