aboutsummaryrefslogtreecommitdiff
path: root/AppKit
diff options
context:
space:
mode:
Diffstat (limited to 'AppKit')
-rw-r--r--AppKit/GTMNSWorkspace+Running.m7
-rw-r--r--AppKit/GTMTheme.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/AppKit/GTMNSWorkspace+Running.m b/AppKit/GTMNSWorkspace+Running.m
index 3c31e6b..973ad22 100644
--- a/AppKit/GTMNSWorkspace+Running.m
+++ b/AppKit/GTMNSWorkspace+Running.m
@@ -150,6 +150,10 @@ NSString *const kGTMWorkspaceRunningBundleVersion = @"CFBundleVersion";
long long temp = [number longLongValue];
UInt32 hi = (UInt32)((temp >> 32) & 0x00000000FFFFFFFFLL);
UInt32 lo = (UInt32)((temp >> 0) & 0x00000000FFFFFFFFLL);
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
+ outPSN.highLongOfPSN = hi;
+ outPSN.lowLongOfPSN = lo;
+#else // MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
if ([GTMSystemVersion isLeopardOrGreater]) {
outPSN.highLongOfPSN = hi;
outPSN.lowLongOfPSN = lo;
@@ -160,8 +164,9 @@ NSString *const kGTMWorkspaceRunningBundleVersion = @"CFBundleVersion";
#else
outPSN.highLongOfPSN = lo;
outPSN.lowLongOfPSN = hi;
-#endif
+#endif // TARGET_RT_BIG_ENDIAN
}
+#endif // MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
}
return outPSN;
}
diff --git a/AppKit/GTMTheme.h b/AppKit/GTMTheme.h
index 484e8dc..5f4700e 100644
--- a/AppKit/GTMTheme.h
+++ b/AppKit/GTMTheme.h
@@ -17,7 +17,7 @@
//
#import "GTMDefines.h"
-#import <Foundation/Foundation.h>
+#import <AppKit/AppKit.h>
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5