diff options
author | liamDevine <unknown> | 2011-08-22 14:32:18 +0400 |
---|---|---|
committer | liamDevine <unknown> | 2011-08-22 14:32:18 +0400 |
commit | 7c3dfa82c7145f1c2906a5f32c0dc22501bb8ea4 (patch) | |
tree | 4023542bb51e9c3228b116e0c3a2c9a8079ec0df /src/host | |
parent | 1fdb95e142676d05e1e89ee537f312970b425da4 (diff) |
First member of SYSTEM_INFO is a union. MSCV allows {}, codeblocks with mingw does not. Prevent warning on both by using {{0}} syntax.
Diffstat (limited to 'src/host')
-rwxr-xr-x | src/host/os_getversion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/os_getversion.c b/src/host/os_getversion.c index d59d06e..506dea3 100755 --- a/src/host/os_getversion.c +++ b/src/host/os_getversion.c @@ -53,7 +53,7 @@ int os_getversion(lua_State* L) void getversion(struct OsVersionInfo* info) { OSVERSIONINFOEX versionInfo = {0}; - SYSTEM_INFO systemInfo = {0}; + SYSTEM_INFO systemInfo = {{0}}; versionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); GetVersionEx((OSVERSIONINFO*)&versionInfo); |