Browse files

conditionally define NSAppKitVersionNumber constants in pch, properly…

… conditionalise Obj-C code
  • Loading branch information...
1 parent d726066 commit b8c8b9e605392eab935573b86a5e2a1544802931 Sean McBride committed Dec 29, 2009
Showing with 15 additions and 1 deletion.
  1. +15 −1 Sparkle.pch
View
16 Sparkle.pch
@@ -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.