summaryrefslogtreecommitdiff
path: root/apple_remote
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-10-03 16:13:20 +0300
committerTor Lillqvist <tml@iki.fi>2011-10-03 16:58:42 +0300
commite5c80a1f1c527196f29041290328e988cd80475b (patch)
tree2c819c183419b1900c850db887586714b6bc8f17 /apple_remote
parent0e9c5066a94bb75f6a8d3ea4c2bad447e3a26a1f (diff)
Workaround for building against MacOSX 10.6 SDK but with 10.4 as the highest used API
Diffstat (limited to 'apple_remote')
-rw-r--r--apple_remote/RemoteMainController.m2
-rw-r--r--apple_remote/inc/AppleRemote.h10
-rw-r--r--apple_remote/inc/GlobalKeyboardDevice.h5
-rw-r--r--apple_remote/inc/HIDRemoteControlDevice.h5
-rw-r--r--apple_remote/inc/KeyspanFrontRowControl.h10
-rw-r--r--apple_remote/inc/MultiClickRemoteBehavior.h1
-rw-r--r--apple_remote/inc/RemoteControl.h10
-rw-r--r--apple_remote/inc/RemoteControlContainer.h1
-rw-r--r--apple_remote/inc/RemoteMainController.h10
9 files changed, 45 insertions, 9 deletions
diff --git a/apple_remote/RemoteMainController.m b/apple_remote/RemoteMainController.m
index 5b3b893adafc..e884e4e180b9 100644
--- a/apple_remote/RemoteMainController.m
+++ b/apple_remote/RemoteMainController.m
@@ -174,4 +174,4 @@
return remoteControlBehavior;
}
-@end \ No newline at end of file
+@end
diff --git a/apple_remote/inc/AppleRemote.h b/apple_remote/inc/AppleRemote.h
index aeb32f9f3892..509ddaa66c20 100644
--- a/apple_remote/inc/AppleRemote.h
+++ b/apple_remote/inc/AppleRemote.h
@@ -28,6 +28,16 @@
*
*****************************************************************************/
+#ifndef DID_DEFINE_SOME_FUTURE_TYPES
+#import <Foundation/NSObjCRuntime.h>
+#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050
+@class CALayer;
+@class NSViewController;
+typedef int NSColorRenderingIntent;
+#define DID_DEFINE_SOME_FUTURE_TYPES
+#endif
+#endif
+
#import <Cocoa/Cocoa.h>
#import "HIDRemoteControlDevice.h"
diff --git a/apple_remote/inc/GlobalKeyboardDevice.h b/apple_remote/inc/GlobalKeyboardDevice.h
index 8e2aede3f34c..ad9c4f3f57a5 100644
--- a/apple_remote/inc/GlobalKeyboardDevice.h
+++ b/apple_remote/inc/GlobalKeyboardDevice.h
@@ -28,11 +28,10 @@
*
*****************************************************************************/
-#import <Cocoa/Cocoa.h>
-#import <Carbon/Carbon.h>
-
#import "RemoteControl.h"
+#import <Carbon/Carbon.h>
+
/*
This class registers for a number of global keyboard shortcuts to simulate a remote control
diff --git a/apple_remote/inc/HIDRemoteControlDevice.h b/apple_remote/inc/HIDRemoteControlDevice.h
index 622441fce83c..44e4d17fc65d 100644
--- a/apple_remote/inc/HIDRemoteControlDevice.h
+++ b/apple_remote/inc/HIDRemoteControlDevice.h
@@ -28,11 +28,10 @@
*
*****************************************************************************/
-#import <Cocoa/Cocoa.h>
-#import <IOKit/hid/IOHIDLib.h>
-
#import "RemoteControl.h"
+#import <IOKit/hid/IOHIDLib.h>
+
/*
Base class for HID based remote control devices
*/
diff --git a/apple_remote/inc/KeyspanFrontRowControl.h b/apple_remote/inc/KeyspanFrontRowControl.h
index a67ce4a96111..2469b5839904 100644
--- a/apple_remote/inc/KeyspanFrontRowControl.h
+++ b/apple_remote/inc/KeyspanFrontRowControl.h
@@ -29,6 +29,16 @@
*****************************************************************************/
+#ifndef DID_DEFINE_SOME_FUTURE_TYPES
+#import <Foundation/NSObjCRuntime.h>
+#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050
+@class CALayer;
+@class NSViewController;
+typedef int NSColorRenderingIntent;
+#define DID_DEFINE_SOME_FUTURE_TYPES
+#endif
+#endif
+
#import <Cocoa/Cocoa.h>
#import "HIDRemoteControlDevice.h"
diff --git a/apple_remote/inc/MultiClickRemoteBehavior.h b/apple_remote/inc/MultiClickRemoteBehavior.h
index 9cffa35fae2f..a704febaa4fb 100644
--- a/apple_remote/inc/MultiClickRemoteBehavior.h
+++ b/apple_remote/inc/MultiClickRemoteBehavior.h
@@ -29,7 +29,6 @@
*****************************************************************************/
-#import <Cocoa/Cocoa.h>
#import "RemoteControl.h"
/**
diff --git a/apple_remote/inc/RemoteControl.h b/apple_remote/inc/RemoteControl.h
index cbf8fd856235..a39f53ba65a2 100644
--- a/apple_remote/inc/RemoteControl.h
+++ b/apple_remote/inc/RemoteControl.h
@@ -28,6 +28,16 @@
*
*****************************************************************************/
+#ifndef DID_DEFINE_SOME_FUTURE_TYPES
+#import <Foundation/NSObjCRuntime.h>
+#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050
+@class CALayer;
+@class NSViewController;
+typedef int NSColorRenderingIntent;
+#define DID_DEFINE_SOME_FUTURE_TYPES
+#endif
+#endif
+
#import <Cocoa/Cocoa.h>
// notifaction names that are being used to signal that an application wants to
diff --git a/apple_remote/inc/RemoteControlContainer.h b/apple_remote/inc/RemoteControlContainer.h
index f6cd40ba1178..e82fa6b88deb 100644
--- a/apple_remote/inc/RemoteControlContainer.h
+++ b/apple_remote/inc/RemoteControlContainer.h
@@ -28,7 +28,6 @@
*
*****************************************************************************/
-#import <Cocoa/Cocoa.h>
#import "RemoteControl.h"
@interface RemoteControlContainer : RemoteControl {
diff --git a/apple_remote/inc/RemoteMainController.h b/apple_remote/inc/RemoteMainController.h
index 7143f1f1eda9..167454071caf 100644
--- a/apple_remote/inc/RemoteMainController.h
+++ b/apple_remote/inc/RemoteMainController.h
@@ -28,6 +28,16 @@
*
*****************************************************************************/
+#ifndef DID_DEFINE_SOME_FUTURE_TYPES
+#import <Foundation/NSObjCRuntime.h>
+#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050
+@class CALayer;
+@class NSViewController;
+typedef int NSColorRenderingIntent;
+#define DID_DEFINE_SOME_FUTURE_TYPES
+#endif
+#endif
+
#import <Cocoa/Cocoa.h>
#define AppleRemoteControlEvent 15