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

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2011-12-09 01:11:51 +0400
committerJason Perkins <starkos@industriousone.com>2011-12-09 01:11:51 +0400
commit06a6ff6d302f57e294d25488a4d0f11175a31272 (patch)
tree615a4f25846972e5199de650496343f9b1aca773
parent271ca2e059ea324b93a81f9cb8e4100b85303b12 (diff)
Patch 3440466: Fixed compiler warnings on Mac (Konstantin Tokarev)
-rwxr-xr-xsrc/host/os_getversion.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/host/os_getversion.c b/src/host/os_getversion.c
index 3cef742..950372a 100755
--- a/src/host/os_getversion.c
+++ b/src/host/os_getversion.c
@@ -142,9 +142,14 @@ void getversion(struct OsVersionInfo* info)
void getversion(struct OsVersionInfo* info)
{
- Gestalt(gestaltSystemVersionMajor, &info->majorversion);
- Gestalt(gestaltSystemVersionMinor, &info->minorversion);
- Gestalt(gestaltSystemVersionBugFix, &info->revision);
+ SInt32 majorversion, minorversion, bugfix;
+ Gestalt(gestaltSystemVersionMajor, &majorversion);
+ Gestalt(gestaltSystemVersionMinor, &minorversion);
+ Gestalt(gestaltSystemVersionBugFix, &bugfix);
+
+ info->majorversion = majorversion;
+ info->minorversion = minorversion;
+ info->revision = bugfix;
info->description = "Mac OS X";
if (info->majorversion == 10)