Skip to content

Instantly share code, notes, and snippets.

@eungju
Created March 16, 2012 10:56
Show Gist options
  • Select an option

  • Save eungju/2049579 to your computer and use it in GitHub Desktop.

Select an option

Save eungju/2049579 to your computer and use it in GitHub Desktop.
Skia Mac OS X 64 patch
Index: src/ports/SkFontHost_mac_coretext.cpp
===================================================================
--- src/ports/SkFontHost_mac_coretext.cpp (revision 3410)
+++ src/ports/SkFontHost_mac_coretext.cpp (working copy)
@@ -1948,7 +1948,7 @@
int count = CFArrayGetCount(cfArray);
if (tags) {
for (int i = 0; i < count; ++i) {
- tags[i] = (SkFontTableTag)CFArrayGetValueAtIndex(cfArray, i);
+ tags[i] = (SkFontTableTag)(uintptr_t)CFArrayGetValueAtIndex(cfArray, i);
}
}
return count;
Index: gyp/common_conditions.gypi
===================================================================
--- gyp/common_conditions.gypi (revision 3410)
+++ gyp/common_conditions.gypi (working copy)
@@ -126,6 +126,7 @@
},
},
'xcode_settings': {
+ 'ARCHS': ['x86', 'x86_64'],
'SYMROOT': '<(DEPTH)/xcodebuild',
'SDKROOT': 'macosx10.6',
# trying to get this to work, but it needs clang I think...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment