// Structure containing all the GUI information
gui_T gui;
-#if !defined(FEAT_GUI_GTK)
+#if defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK)
+# define USE_SET_GUIFONTWIDE
static void set_guifontwide(char_u *font_name);
#endif
static void gui_check_pos(void);
// longer be used!
if (gui_mch_init_font(font_name, FALSE) == OK)
{
-#if !defined(FEAT_GUI_GTK)
+#ifdef USE_SET_GUIFONTWIDE
// If it's a Unicode font, try setting 'guifontwide' to a
// similar double-width font.
if ((p_guifontwide == NULL || *p_guifontwide == NUL)
return ret;
}
-#ifndef FEAT_GUI_GTK
+#ifdef USE_SET_GUIFONTWIDE
/*
* Try setting 'guifontwide' to a font twice as wide as "name".
*/
}
}
}
-#endif // !FEAT_GUI_GTK
+#endif
/*
* Get the font for 'guifontwide'.