summaryrefslogtreecommitdiff
path: root/src/macfont.h
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2017-08-26 09:44:42 +0100
committerAlan Third <alan@idiocy.org>2017-08-29 17:19:05 +0100
commitfdde98113c5d1c2d4eb5c25fa750c976d90f8555 (patch)
tree5b3fe85fda709b328edb78eec1cf8b1a16882a09 /src/macfont.h
parent1b0d72244d5df61d9fbe10808808b3c045a3382b (diff)
downloademacs-fdde98113c5d1c2d4eb5c25fa750c976d90f8555.tar.gz
Fix cross macOS version building (bug#28222)
* src/macfont.h (CGContextSetFontSmoothingStyle): Function declaration. * src/macfont.m (macfont_draw): Limit new code to macOS 10.8 and up.
Diffstat (limited to 'src/macfont.h')
-rw-r--r--src/macfont.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/macfont.h b/src/macfont.h
index 32899908be9..3a66d2d005a 100644
--- a/src/macfont.h
+++ b/src/macfont.h
@@ -82,3 +82,10 @@ typedef const struct _EmacsScreenFont *ScreenFontRef; /* opaque */
extern void mac_register_font_driver (struct frame *f);
extern void *macfont_get_nsctfont (struct font *font);
extern void macfont_update_antialias_threshold (void);
+
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
+/* This is an undocumented function that is probably not available
+ pre-10.8. */
+extern void CGContextSetFontSmoothingStyle(CGContextRef, int)
+ __attribute__((weak_import));
+#endif