changeset 18448:4b1e2aefeb9d

Fix the win32 build. Thanks to Etan and Lee Roach. Fixes #1929.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 06 Jul 2007 14:44:05 +0000
parents 8fc91e437981
children 8457bb35bf8c
files libpurple/plugins/perl/common/Makefile.mingw libpurple/plugins/perl/perl-common.h libpurple/win32/win32dep.c pidgin/gtkimhtml.c pidgin/plugins/perl/common/Makefile.mingw pidgin/win32/gtkwin32dep.c pidgin/win32/gtkwin32dep.h
diffstat 7 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/perl/common/Makefile.mingw	Fri Jul 06 06:14:31 2007 +0000
+++ b/libpurple/plugins/perl/common/Makefile.mingw	Fri Jul 06 14:44:05 2007 +0000
@@ -20,6 +20,7 @@
 INCLUDE_PATHS +=		-I. \
 			-I$(PIDGIN_TREE_TOP) \
 			-I$(PURPLE_TOP) \
+			-I$(PURPLE_TOP)/win32 \
 			-I$(GTK_TOP)/include \
 			-I$(GTK_TOP)/include/glib-2.0 \
 			-I$(GTK_TOP)/lib/glib-2.0/include \
--- a/libpurple/plugins/perl/perl-common.h	Fri Jul 06 06:14:31 2007 +0000
+++ b/libpurple/plugins/perl/perl-common.h	Fri Jul 06 14:44:05 2007 +0000
@@ -11,7 +11,14 @@
 
 /* XXX: perl defines it's own _ but I think it's safe to undef it */
 #undef _
+/* Dirty hack to prevent the win32 libc compat stuff from interfering with the Perl internal stuff */
+#ifdef _WIN32
+#define _WIN32DEP_H_
+#endif
 #include "internal.h"
+#ifdef _WIN32
+#undef _WIN32DEP_H_
+#endif
 #include "plugin.h"
 #include "value.h"
 
--- a/libpurple/win32/win32dep.c	Fri Jul 06 06:14:31 2007 +0000
+++ b/libpurple/win32/win32dep.c	Fri Jul 06 14:44:05 2007 +0000
@@ -43,8 +43,6 @@
 /*
  *  DEFINES & MACROS
  */
-#define _(x) gettext(x)
-
 #define WIN32_PROXY_REGKEY "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"
 
 /* For shfolder.dll */
--- a/pidgin/gtkimhtml.c	Fri Jul 06 06:14:31 2007 +0000
+++ b/pidgin/gtkimhtml.c	Fri Jul 06 14:44:05 2007 +0000
@@ -28,8 +28,8 @@
 #include <config.h>
 #endif
 
+#include "internal.h"
 #include "pidgin.h"
-#include "internal.h"
 
 #include "debug.h"
 #include "util.h"
--- a/pidgin/plugins/perl/common/Makefile.mingw	Fri Jul 06 06:14:31 2007 +0000
+++ b/pidgin/plugins/perl/common/Makefile.mingw	Fri Jul 06 14:44:05 2007 +0000
@@ -18,6 +18,7 @@
 INCLUDE_PATHS =		-I. \
 			-I$(PIDGIN_TREE_TOP) \
 			-I$(PURPLE_TOP) \
+			-I$(PURPLE_TOP)/win32 \
 			-I$(PIDGIN_TOP) \
 			-I$(PIDGIN_TOP)/win32 \
 			-I$(GTK_TOP)/include \
--- a/pidgin/win32/gtkwin32dep.c	Fri Jul 06 06:14:31 2007 +0000
+++ b/pidgin/win32/gtkwin32dep.c	Fri Jul 06 14:44:05 2007 +0000
@@ -36,6 +36,8 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkwin32.h>
 
+#include "internal.h"
+
 #include "debug.h"
 #include "notify.h"
 
--- a/pidgin/win32/gtkwin32dep.h	Fri Jul 06 06:14:31 2007 +0000
+++ b/pidgin/win32/gtkwin32dep.h	Fri Jul 06 14:44:05 2007 +0000
@@ -45,5 +45,5 @@
 void winpidgin_post_init(void);
 void winpidgin_cleanup(void);
 
-#endif /* _WIN32DEP_H_ */
+#endif /* _GTKWIN32DEP_H_ */