diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2015-11-08 20:16:10 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2016-06-28 21:09:46 +0300 |
commit | 5daae123915f32a4ed6dc948b831533c2d1beec3 (patch) | |
tree | e5709d3fa1d633f2c3568d4aa09609cd9645e5b1 | |
parent | Update THANKS. (diff) | |
download | xz-5daae123915f32a4ed6dc948b831533c2d1beec3.tar.xz |
tuklib_physmem: Hopefully silence a warning on Windows.
-rw-r--r-- | src/common/tuklib_physmem.c | 3 |
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; |