summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2014-08-16 14:55:15 +0000
committerKhaled Hosny <khaledhosny@eglug.org>2014-08-16 14:55:15 +0000
commitb397e7b5fd444ad9d68d4fa60b32a0bb7d83e650 (patch)
treeb3fd847a4c19f4debe2dd5622bf1de67c2a443c8
parentafd6eef224e72feeb41287b2b5240444c1ff77d3 (diff)
Fix XeTeX build on Mac
git-svn-id: svn://tug.org/texlive/trunk@34950 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeX_ext.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_ext.c b/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
index 0b6aadd8fbe..f210dc1435f 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
+++ b/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
@@ -2287,6 +2287,7 @@ aatfontget(int what, CFDictionaryRef attributes)
#ifdef XETEX_MAC
CTFontRef font = fontFromAttributes(attributes);
+ CFArrayRef list;
switch (what) {
case XeTeX_count_glyphs:
@@ -2294,7 +2295,7 @@ aatfontget(int what, CFDictionaryRef attributes)
break;
case XeTeX_count_features:
- CFArrayRef list = CTFontCopyFeatures(font);
+ list = CTFontCopyFeatures(font);
if (list) {
rval = CFArrayGetCount(list);
CFRelease(list);
@@ -2425,9 +2426,7 @@ aatfontgetnamed(int what, CFDictionaryRef attributes)
}
CFRelease(features);
}
- break;
}
- }
#endif
return rval;