diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-10-26 17:44:12 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-10-27 10:19:05 +0300 |
commit | 9d1dc25f564dada022e1b62fec834d183a1fd258 (patch) | |
tree | 6ddf4964d373d37a7f6a46feff1681d1f2d64b33 /extensions/source | |
parent | 812d16f4b61fb2494834f0546bcb840a7b242394 (diff) |
Copy-pasted workaround for building against MacOSX 10.6 SDK but with 10.4 as the highest used API
Yeah, should really factor out this snippet into some header file. It
is already in premac.h, but I think premac.h can't be included as such
in all the places where this copy-pasted snippet now is. Need to
experiment.
Diffstat (limited to 'extensions/source')
4 files changed, 28 insertions, 0 deletions
diff --git a/extensions/source/macosx/spotlight/GetMetadataForFile.m b/extensions/source/macosx/spotlight/GetMetadataForFile.m index 78a6af57e591..e47603dc7027 100644 --- a/extensions/source/macosx/spotlight/GetMetadataForFile.m +++ b/extensions/source/macosx/spotlight/GetMetadataForFile.m @@ -26,6 +26,13 @@ * *************************************************************************/ +#import <Foundation/NSObjCRuntime.h> +#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050 +@class CALayer; +@class NSViewController; +typedef int NSColorRenderingIntent; +#endif + #include <CoreFoundation/CoreFoundation.h> #include <CoreServices/CoreServices.h> #include <Foundation/Foundation.h> diff --git a/extensions/source/macosx/spotlight/OOoContentDataParser.m b/extensions/source/macosx/spotlight/OOoContentDataParser.m index a41a10877c27..a35b2194a4da 100644 --- a/extensions/source/macosx/spotlight/OOoContentDataParser.m +++ b/extensions/source/macosx/spotlight/OOoContentDataParser.m @@ -26,6 +26,13 @@ * *************************************************************************/ +#import <Foundation/NSObjCRuntime.h> +#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050 +@class CALayer; +@class NSViewController; +typedef int NSColorRenderingIntent; +#endif + #import "OOoContentDataParser.h" @implementation OOoContentDataParser diff --git a/extensions/source/macosx/spotlight/OOoMetaDataParser.m b/extensions/source/macosx/spotlight/OOoMetaDataParser.m index 3c8bb4c35cd6..cb26f916e083 100644 --- a/extensions/source/macosx/spotlight/OOoMetaDataParser.m +++ b/extensions/source/macosx/spotlight/OOoMetaDataParser.m @@ -26,6 +26,13 @@ * *************************************************************************/ +#import <Foundation/NSObjCRuntime.h> +#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050 +@class CALayer; +@class NSViewController; +typedef int NSColorRenderingIntent; +#endif + #import "OOoMetaDataParser.h" static NSSet *singleValueXMLElements; diff --git a/extensions/source/macosx/spotlight/OOoSpotlightImporter.m b/extensions/source/macosx/spotlight/OOoSpotlightImporter.m index 884fb8000e6d..dcb615304c35 100644 --- a/extensions/source/macosx/spotlight/OOoSpotlightImporter.m +++ b/extensions/source/macosx/spotlight/OOoSpotlightImporter.m @@ -26,6 +26,13 @@ * *************************************************************************/ +#import <Foundation/NSObjCRuntime.h> +#if defined (NSFoundationVersionNumber10_5) && MAC_OS_X_VERSION_MAX_ALLOWED < 1050 +@class CALayer; +@class NSViewController; +typedef int NSColorRenderingIntent; +#endif + #import "OOoSpotlightImporter.h" #import "OOoMetaDataParser.h" #import "OOoContentDataParser.h" |