]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation for GNUStep due to font changes.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 15 Sep 2013 19:43:32 +0000 (21:43 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 15 Sep 2013 19:43:32 +0000 (21:43 +0200)
* font.c (syms_of_font): Check MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
for syms_of_macfont.

* nsfns.m (Fx_create_frame): Fix font driver registration for
GNUStep.

src/ChangeLog
src/font.c
src/nsfns.m

index e3b29c9b21d28c1cc3246b37cce0537b2b617f7a..0050d949dd2b7974697fa7854063f13c2cf4cc64 100644 (file)
@@ -1,5 +1,11 @@
 2013-09-15  Jan Djärv  <jan.h.d@swipnet.se>
 
+       * nsfns.m (Fx_create_frame): Fix font driver registration for
+       GNUStep.
+
+       * font.c (syms_of_font): Check MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
+       for syms_of_macfont.
+
        * nsterm.m: Include macfont.h.
        (ns_tmp_flags, ns_tmp_font): Remove.
        (ns_compute_glyph_string_overhangs): Check for driver Qns.
index 27f4f5dca91d2b31a2753e3746501057f7f7d218..cc832f9a88a17bf4b23ebdffb1c5593dbc217696 100644 (file)
@@ -5199,7 +5199,9 @@ EMACS_FONT_LOG is set.  Otherwise, it is set to t.  */);
 #endif /* HAVE_NTGUI */
 #ifdef HAVE_NS
   syms_of_nsfont ();
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
   syms_of_macfont ();
+#endif
 #endif /* HAVE_NS */
 #endif /* HAVE_WINDOW_SYSTEM */
 }
index 1b4e6b7f57ec05c69ae3320162d5819f5535c194..574239873a06bf6d8a4c769be845cf20a265cea0 100644 (file)
@@ -1175,15 +1175,14 @@ This function is an internal primitive--use `make-frame' instead.  */)
 
   block_input ();
 
-#ifdef NS_IMPL_GNUSTEP ||                               \
-  MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
-  register_font_driver (&nsfont_driver, f);
-#else
+#ifdef NS_IMPL_COCOA
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
   if (CTGetCoreTextVersion != NULL
       && CTGetCoreTextVersion () >= kCTVersionNumber10_5)
     mac_register_font_driver (f);
-  register_font_driver (&nsfont_driver, f);
 #endif
+#endif
+  register_font_driver (&nsfont_driver, f);
 
   x_default_parameter (f, parms, Qfont_backend, Qnil,
                        "fontBackend", "FontBackend", RES_TYPE_STRING);