Skip to content

Commit

Permalink
conditionally define NSAppKitVersionNumber constants in pch, properly…
Browse files Browse the repository at this point in the history
… conditionalise Obj-C code
  • Loading branch information
Sean McBride authored and Sean McBride committed Dec 30, 2009
1 parent d726066 commit b8c8b9e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Sparkle.pch
Expand Up @@ -6,11 +6,25 @@
// Copyright 2008 Andy Matuschak. All rights reserved.
//

#ifndef NSAppKitVersionNumber10_4
#define NSAppKitVersionNumber10_4 824
#endif

#ifndef NSAppKitVersionNumber10_5
#define NSAppKitVersionNumber10_5 949
#endif

#ifndef NSAppKitVersionNumber10_6
#define NSAppKitVersionNumber10_6 1038
#endif

#ifdef __OBJC__

#define SPARKLE_BUNDLE [NSBundle bundleWithIdentifier:@"org.andymatuschak.Sparkle"]
#define SULocalizedString(key,comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", SPARKLE_BUNDLE, comment)
#define SUAbstractFail() NSAssert2(nil, @"Can't call %@ on an instance of %@; this is an abstract method!", __PRETTY_FUNCTION__, [self class]);

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#import "SUConstants.h"

#endif

0 comments on commit b8c8b9e

Please sign in to comment.