From: Dmitry Antipov Date: Mon, 9 Dec 2013 16:30:52 +0000 (+0400) Subject: * gtkutil.c (USE_NEW_GTK_FONT_CHOOSER) [HAVE_FREETYPE]: X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~495 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ad8a47b89fc3c5a3302255f318b1ed805838cf72;p=emacs.git * gtkutil.c (USE_NEW_GTK_FONT_CHOOSER) [HAVE_FREETYPE]: Avoid unused macro warning if configured --without-xft. --- diff --git a/src/ChangeLog b/src/ChangeLog index 159bf04075e..0970bf62b52 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-12-09 Dmitry Antipov + + * gtkutil.c (USE_NEW_GTK_FONT_CHOOSER) [HAVE_FREETYPE]: + Avoid unused macro warning if configured --without-xft. + 2013-12-09 Jan Djärv * alloc.c (Fmemory_limit): Avoid compiler warning. Return 0 always. diff --git a/src/gtkutil.c b/src/gtkutil.c index 8f007dad868..e5d6414cf75 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -78,6 +78,7 @@ along with GNU Emacs. If not, see . */ #define remove_submenu(w) gtk_menu_item_remove_submenu ((w)) #endif +#ifdef HAVE_FREETYPE #if GTK_CHECK_VERSION (3, 2, 0) #define USE_NEW_GTK_FONT_CHOOSER 1 #else @@ -89,6 +90,7 @@ along with GNU Emacs. If not, see . */ #define gtk_font_chooser_set_font(x, y) \ gtk_font_selection_dialog_set_font_name (x, y) #endif +#endif /* HAVE_FREETYPE */ #ifndef HAVE_GTK3 #ifdef USE_GTK_TOOLTIP