Skip to content

Commit

Permalink
macosx: rename macro for mavericks detection since its out now
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fuhrmann committed Oct 26, 2013
1 parent ec415df commit ba62dea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/gui/macosx/CompatibilityFixes.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define OSX_SNOW_LEOPARD (NSAppKitVersionNumber < 1115 && NSAppKitVersionNumber >= 1038)
#define OSX_LION (NSAppKitVersionNumber < 1162 && NSAppKitVersionNumber >= 1115.2)
#define OSX_MOUNTAIN_LION (NSAppKitVersionNumber < 1244 && NSAppKitVersionNumber >= 1162)
#define OSX_REDACTED NSAppKitVersionNumber >= 1244
#define OSX_MAVERICKS NSAppKitVersionNumber >= 1244

#pragma mark -
#pragma Fixes for OS X Snow Leopard (10.6)
Expand Down
4 changes: 2 additions & 2 deletions modules/gui/macosx/intf.m
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ - (void)playbackStatusUpdated

IOReturn success;
/* work-around a bug in 10.7.4 and 10.7.5, so check for 10.7.x < 10.7.4, 10.8 and 10.6 */
if ((NSAppKitVersionNumber >= 1115.2 && NSAppKitVersionNumber < 1138.45) || OSX_MOUNTAIN_LION || OSX_REDACTED || OSX_SNOW_LEOPARD) {
if ((NSAppKitVersionNumber >= 1115.2 && NSAppKitVersionNumber < 1138.45) || OSX_MOUNTAIN_LION || OSX_MAVERICKS || OSX_SNOW_LEOPARD) {
CFStringRef reasonForActivity = CFStringCreateWithCString(kCFAllocatorDefault, _("VLC media playback"), kCFStringEncodingUTF8);
if ([self activeVideoPlayback])
success = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep, kIOPMAssertionLevelOn, reasonForActivity, &systemSleepAssertionID);
Expand Down Expand Up @@ -1778,7 +1778,7 @@ - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)err
- (NSString *)latestCrashLogPathPreviouslySeen:(BOOL)previouslySeen
{
NSString * crashReporter;
if (OSX_MOUNTAIN_LION || OSX_REDACTED)
if (OSX_MOUNTAIN_LION || OSX_MAVERICKS)
crashReporter = [@"~/Library/Logs/DiagnosticReports" stringByExpandingTildeInPath];
else
crashReporter = [@"~/Library/Logs/CrashReporter" stringByExpandingTildeInPath];
Expand Down
2 changes: 1 addition & 1 deletion modules/gui/macosx/macosx.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
set_subcategory(SUBCAT_INTERFACE_MAIN)
cannot_unload_broken_library()

BOOL b_have_mavericks = OSX_REDACTED;
BOOL b_have_mavericks = OSX_MAVERICKS;

set_section(N_("Appearance"), 0)
add_bool("macosx-interfacestyle", false, INTERFACE_STYLE_TEXT, INTERFACE_STYLE_LONGTEXT, false)
Expand Down
2 changes: 1 addition & 1 deletion modules/gui/macosx/misc.m
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ + (void)load
/* init our fake object attribute */
blackoutWindows = [[NSMutableArray alloc] initWithCapacity:1];

if (OSX_REDACTED) {
if (OSX_MAVERICKS) {
NSUserDefaults *userDefaults = [[NSUserDefaults alloc] init];
[userDefaults addSuiteNamed:@"com.apple.spaces"];
/* this is system settings -> mission control -> monitors using different spaces */
Expand Down

0 comments on commit ba62dea

Please sign in to comment.