Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorliamDevine <unknown>2011-08-22 14:32:18 +0400
committerliamDevine <unknown>2011-08-22 14:32:18 +0400
commit7c3dfa82c7145f1c2906a5f32c0dc22501bb8ea4 (patch)
tree4023542bb51e9c3228b116e0c3a2c9a8079ec0df /src/host
parent1fdb95e142676d05e1e89ee537f312970b425da4 (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-xsrc/host/os_getversion.c2
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);