Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AJet committed Aug 18, 2014
1 parent ca90f18 commit f360e67
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Helpers/OSXVersion.m
Expand Up @@ -18,15 +18,15 @@ + (OSXGeneration)generation;
{
if (_generation == OSXGeneration_Unknown)
{
SInt32 major = 0;
if (Gestalt(gestaltSystemVersionMajor, &major) == noErr)
SInt32 majorVersion = 0;
if (Gestalt(gestaltSystemVersionMajor, &majorVersion) == noErr)
{
if (major == 10)
if (majorVersion == 10)
{
SInt32 minor = 0;
if (Gestalt(gestaltSystemVersionMinor, &minor) == noErr)
SInt32 minorVersion = 0;
if (Gestalt(gestaltSystemVersionMinor, &minorVersion) == noErr)
{
switch (minor)
switch (minorVersion)
{
case 10:
_generation = OSXGeneration_Yosemite;
Expand Down

0 comments on commit f360e67

Please sign in to comment.