# HG changeset patch # User Daniel Atallah # Date 1284734494 0 # Node ID 7f79ac13965c8bb78296bbd8685a36ded4469647 # Parent 47ea274819729f590acc22bb297e12ab41da44af Make the win32 build possible to compile without GtkSpell if HAVE_GTKSPELL isn't defined. diff -r 47ea27481972 -r 7f79ac13965c pidgin/win32/gtkwin32dep.c --- a/pidgin/win32/gtkwin32dep.c Fri Sep 17 14:40:13 2010 +0000 +++ b/pidgin/win32/gtkwin32dep.c Fri Sep 17 14:41:34 2010 +0000 @@ -51,7 +51,9 @@ #include "gtkconv.h" #include "gtkconn.h" #include "util.h" +#ifdef USE_GTKSPELL #include "wspell.h" +#endif /* * GLOBALS @@ -400,7 +402,9 @@ g_free(locale_debug_dir); } +#ifdef USE_GTKSPELL winpidgin_spell_init(); +#endif purple_debug_info("winpidgin", "GTK+ :%u.%u.%u\n", gtk_major_version, gtk_minor_version, gtk_micro_version); diff -r 47ea27481972 -r 7f79ac13965c pidgin/win32/wspell.c --- a/pidgin/win32/wspell.c Fri Sep 17 14:40:13 2010 +0000 +++ b/pidgin/win32/wspell.c Fri Sep 17 14:41:34 2010 +0000 @@ -22,6 +22,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA * */ +#ifdef USE_GTKSPELL #include #include #include @@ -102,3 +103,4 @@ void winpidgin_spell_init() { load_gtkspell(); } +#endif