changeset 30551:7f79ac13965c

Make the win32 build possible to compile without GtkSpell if HAVE_GTKSPELL isn't defined.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 17 Sep 2010 14:41:34 +0000
parents 47ea27481972
children 274e691dd5f4
files pidgin/win32/gtkwin32dep.c pidgin/win32/wspell.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
--- 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 <windows.h>
 #include <string.h>
 #include <stdlib.h>
@@ -102,3 +103,4 @@
 void winpidgin_spell_init() {
 	load_gtkspell();
 }
+#endif