From 9c8c062d6b5498d3acdf07a841f4036f45ff73f0 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 22 Aug 2016 16:14:39 +0000 Subject: Use the HAS_ATSU preprocessor variable once more git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11883 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/drivers/Quartz') diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx index 7147ba4d5..92948db3d 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx @@ -39,7 +39,7 @@ static CFMutableDictionaryRef attributes = NULL; #endif static const int CoreText_threshold = 100500; // this represents Mac OS 10.5 -// condition when the ATSU API is available at compile time +// condition for the ATSU API to be available at compile time #define HAS_ATSU (!__LP64__) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11 // Bug: older versions calculated the value for *ap as a side effect of @@ -158,7 +158,7 @@ if(fl_mac_os_version >= CoreText_threshold) { } else { #endif -#if (!__LP64__) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11 +#if HAS_ATSU ItemCount oFontCount, oCountAgain; ATSUFontID *oFontIDs; // How many fonts? @@ -193,7 +193,7 @@ else { } free(oFontIDs); return (Fl_Font)fl_free_font; -#endif //__LP64__ +#endif // HAS_ATSU #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 } #endif -- cgit v1.2.3