Revision: 4224
http://skim-app.svn.sourceforge.net/skim-app/?rev=4224&view=rev
Author: hofman
Date: 2008-07-15 08:18:42 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
Factor out Leopard compatibility header.
Modified Paths:
--------------
trunk/SkimNotes/SkimNotes.xcodeproj/project.pbxproj
trunk/SkimNotes/SkimNotesBase_Prefix.pch
trunk/SkimNotes/SkimNotes_Prefix.pch
trunk/SkimNotes/SkimNotes_Tool_Prefix.pch
Added Paths:
-----------
trunk/SkimNotes/SKNCompatibility.h
Added: trunk/SkimNotes/SKNCompatibility.h
===================================================================
--- trunk/SkimNotes/SKNCompatibility.h (rev 0)
+++ trunk/SkimNotes/SKNCompatibility.h 2008-07-15 15:18:42 UTC (rev 4224)
@@ -0,0 +1,17 @@
+//
+// Used in the prefix header for all source files to define Leopard symbols in
a Tiger environment.
+//
+
+#ifndef NSINTEGER_DEFINED
+ #ifdef NS_BUILD_32_LIKE_64
+ typedef long NSInteger;
+ typedef unsigned long NSUInteger;
+ #else
+ typedef int NSInteger;
+ typedef unsigned int NSUInteger;
+ #endif
+ #define NSIntegerMax LONG_MAX
+ #define NSIntegerMin LONG_MIN
+ #define NSUIntegerMax ULONG_MAX
+ #define NSINTEGER_DEFINED 1
+#endif
Modified: trunk/SkimNotes/SkimNotes.xcodeproj/project.pbxproj
===================================================================
--- trunk/SkimNotes/SkimNotes.xcodeproj/project.pbxproj 2008-07-15 15:13:10 UTC
(rev 4223)
+++ trunk/SkimNotes/SkimNotes.xcodeproj/project.pbxproj 2008-07-15 15:18:42 UTC
(rev 4224)
@@ -106,6 +106,7 @@
CEA5F53D0E2CED0E00F65088 /* SkimNotesBase.framework */ = {isa =
PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0;
path = SkimNotesBase.framework; sourceTree = BUILT_PRODUCTS_DIR; };
CEA5F5490E2CED6D00F65088 /* SkimNotesBase.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SkimNotesBase.h; sourceTree = "<group>"; };
CEA5F54C0E2CEDC400F65088 /* SkimNotesBase_Prefix.pch */ = {isa
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path
= SkimNotesBase_Prefix.pch; sourceTree = "<group>"; };
+ CEA5F5870E2CF63000F65088 /* SKNCompatibility.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKNCompatibility.h; sourceTree = "<group>"; };
CEBA2B550E0566B00000B2E6 /* skimnotes */ = {isa =
PBXFileReference; explicitFileType = "compiled.mach-o.executable";
includeInIndex = 0; path = skimnotes; sourceTree = BUILT_PRODUCTS_DIR; };
CEBA2B5A0E0566DF0000B2E6 /* SKNAgentListener.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKNAgentListener.h; sourceTree = "<group>"; };
CEBA2B5B0E0566DF0000B2E6 /* SKNAgentListener.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKNAgentListener.m; sourceTree = "<group>"; };
@@ -249,6 +250,7 @@
32DBCF5E0370ADEE00C91783 /*
SkimNotes_Prefix.pch */,
CEA5F54C0E2CEDC400F65088 /*
SkimNotesBase_Prefix.pch */,
CE17F1BB0E25861700DE06EA /*
SkimNotes_Tool_Prefix.pch */,
+ CEA5F5870E2CF63000F65088 /* SKNCompatibility.h
*/,
);
name = "Other Sources";
sourceTree = "<group>";
Modified: trunk/SkimNotes/SkimNotesBase_Prefix.pch
===================================================================
--- trunk/SkimNotes/SkimNotesBase_Prefix.pch 2008-07-15 15:13:10 UTC (rev
4223)
+++ trunk/SkimNotes/SkimNotesBase_Prefix.pch 2008-07-15 15:18:42 UTC (rev
4224)
@@ -5,21 +5,9 @@
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
- #define SKNLocalizedString(key, comment)
NSLocalizedStringFromTableInBundle(key, @"SkimNotes", [NSBundle
bundleWithIdentifier:@"net.sourceforge.skim-app.framework.SkimNotesBase"],
comment)
-
#if !defined(MAC_OS_X_VERSION_10_5) || MAC_OS_X_VERSION_MAX_ALLOWED <
MAC_OS_X_VERSION_10_5
- #ifndef NSINTEGER_DEFINED
- #ifdef NS_BUILD_32_LIKE_64
- typedef long NSInteger;
- typedef unsigned long NSUInteger;
- #else
- typedef int NSInteger;
- typedef unsigned int NSUInteger;
- #endif
- #define NSIntegerMax LONG_MAX
- #define NSIntegerMin LONG_MIN
- #define NSUIntegerMax ULONG_MAX
- #define NSINTEGER_DEFINED 1
- #endif
+ #import "SKNCompatibility.h"
#endif
+
+ #define SKNLocalizedString(key, comment)
NSLocalizedStringFromTableInBundle(key, @"SkimNotes", [NSBundle
bundleWithIdentifier:@"net.sourceforge.skim-app.framework.SkimNotesBase"],
comment)
#endif
Modified: trunk/SkimNotes/SkimNotes_Prefix.pch
===================================================================
--- trunk/SkimNotes/SkimNotes_Prefix.pch 2008-07-15 15:13:10 UTC (rev
4223)
+++ trunk/SkimNotes/SkimNotes_Prefix.pch 2008-07-15 15:18:42 UTC (rev
4224)
@@ -6,21 +6,9 @@
#import <Cocoa/Cocoa.h>
#import <Quartz/Quartz.h>
- #define SKNLocalizedString(key, comment)
NSLocalizedStringFromTableInBundle(key, @"SkimNotes", [NSBundle
bundleWithIdentifier:@"net.sourceforge.skim-app.framework.SkimNotes"], comment)
-
#if !defined(MAC_OS_X_VERSION_10_5) || MAC_OS_X_VERSION_MAX_ALLOWED <
MAC_OS_X_VERSION_10_5
- #ifndef NSINTEGER_DEFINED
- #ifdef NS_BUILD_32_LIKE_64
- typedef long NSInteger;
- typedef unsigned long NSUInteger;
- #else
- typedef int NSInteger;
- typedef unsigned int NSUInteger;
- #endif
- #define NSIntegerMax LONG_MAX
- #define NSIntegerMin LONG_MIN
- #define NSUIntegerMax ULONG_MAX
- #define NSINTEGER_DEFINED 1
- #endif
+ #import "SKNCompatibility.h"
#endif
+
+ #define SKNLocalizedString(key, comment)
NSLocalizedStringFromTableInBundle(key, @"SkimNotes", [NSBundle
bundleWithIdentifier:@"net.sourceforge.skim-app.framework.SkimNotes"], comment)
#endif
Modified: trunk/SkimNotes/SkimNotes_Tool_Prefix.pch
===================================================================
--- trunk/SkimNotes/SkimNotes_Tool_Prefix.pch 2008-07-15 15:13:10 UTC (rev
4223)
+++ trunk/SkimNotes/SkimNotes_Tool_Prefix.pch 2008-07-15 15:18:42 UTC (rev
4224)
@@ -5,21 +5,9 @@
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
- #define SKNLocalizedString(key, comment) key
-
#if !defined(MAC_OS_X_VERSION_10_5) || MAC_OS_X_VERSION_MAX_ALLOWED <
MAC_OS_X_VERSION_10_5
- #ifndef NSINTEGER_DEFINED
- #ifdef NS_BUILD_32_LIKE_64
- typedef long NSInteger;
- typedef unsigned long NSUInteger;
- #else
- typedef int NSInteger;
- typedef unsigned int NSUInteger;
- #endif
- #define NSIntegerMax LONG_MAX
- #define NSIntegerMin LONG_MIN
- #define NSUIntegerMax ULONG_MAX
- #define NSINTEGER_DEFINED 1
- #endif
+ #import "SKNCompatibility.h"
#endif
+
+ #define SKNLocalizedString(key, comment) key
#endif
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit