From b397e7b5fd444ad9d68d4fa60b32a0bb7d83e650 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 16 Aug 2014 14:55:15 +0000 Subject: Fix XeTeX build on Mac git-svn-id: svn://tug.org/texlive/trunk@34950 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/xetexdir/XeTeX_ext.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Build') 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; -- cgit v1.2.3