summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-07-23 16:27:57 +0300
committerTor Lillqvist <tml@iki.fi>2012-07-23 16:38:39 +0300
commitabf0ff683bc87fe6b2d88df0ae101d89740d6238 (patch)
treecb738dd14e37b0ef5dfaf1eae976fc44f4a5763a /pango
parent59fa9d92972e60ef5d7278454d584dae582401c0 (diff)
Avoid confusion in 10.7 SDK headers in at least Xcode45-DP3
When building with MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7, <CoreData/NSFetchRequest.h> does #define NSPersistentStoreRequest NSObject (i.e. as a dummy) and does not import <CoreData/NSPersistentStoreRequest.h>. But <CoreData/NSIncrementalStore.h> doesn't do anything similar, it imports <CoreData/NSPersistentStoreRequest.h> unconditionally. So if <CoreData/NSFetchRequest.h> has already been included by then, it will end up quite confusing. Change-Id: I9de6885ea444a73bf5fd50aa6a3d132b9fcc2f31
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-1.28.3.patch14
1 files changed, 12 insertions, 2 deletions
diff --git a/pango/pango-1.28.3.patch b/pango/pango-1.28.3.patch
index 539bef79a035..ba6edcb4623d 100644
--- a/pango/pango-1.28.3.patch
+++ b/pango/pango-1.28.3.patch
@@ -65,7 +65,7 @@
# Checks for LibThai
--- misc/pango-1.28.3/pango/pangoatsui-fontmap.c
+++ misc/build/pango-1.28.3/pango/pangoatsui-fontmap.c
-@@ -27,6 +27,12 @@
+@@ -27,6 +27,17 @@
#include "pango-impl-utils.h"
#include "modules.h"
@@ -75,12 +75,17 @@
+typedef int NSColorRenderingIntent;
+#endif
+
++#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070 && MACOSX_SDK_VERSION >= 1070
++// Avoid a problem in at least the XCode 4.5DP3 SDK 10.7 headers
++#import <CoreData/NSPersistentStoreRequest.h>
++#endif
++
#import <Cocoa/Cocoa.h>
typedef struct _FontHashKey FontHashKey;
--- misc/pango-1.28.3/pango/pangocairo-atsuifont.c
+++ misc/build/pango-1.28.3/pango/pangocairo-atsuifont.c
-@@ -22,6 +22,12 @@
+@@ -22,6 +22,17 @@
#include "config.h"
@@ -90,6 +95,11 @@
+typedef int NSColorRenderingIntent;
+#endif
+
++#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070 && MACOSX_SDK_VERSION >= 1070
++// Avoid a problem in at least the XCode 4.5DP3 SDK 10.7 headers
++#import <CoreData/NSPersistentStoreRequest.h>
++#endif
++
#import <Cocoa/Cocoa.h>
#include "pango-impl-utils.h"