Patch 3440466: Fixed compiler warnings on Mac (Konstantin Tokarev)
This commit is contained in:
parent
3d73306a4e
commit
1350e205fd
@ -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)
|
||||
|
Reference in New Issue
Block a user