diff options
| author | Manolo Gouy <Manolo> | 2016-08-22 16:14:39 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-08-22 16:14:39 +0000 |
| commit | 9c8c062d6b5498d3acdf07a841f4036f45ff73f0 (patch) | |
| tree | 4af82fcfb83d023ef5a183fb46e96714ab4c4912 /src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx | |
| parent | 707d7f0dda6f9631211efaa11395dbeab76f47e3 (diff) | |
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
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
