Patch 3440466: Fixed compiler warnings on Mac (Konstantin Tokarev)

This commit is contained in:
Jason Perkins 2011-12-08 16:11:51 -05:00
parent 3d73306a4e
commit 1350e205fd

View File

@ -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)