# HG changeset patch # User Daniel Atallah # Date 1266535938 0 # Node ID 1d712c4f9b6c92d98e35889f3ed5b2efb4f23473 # Parent 66a15a093e613094046b525d8d920d8772b65a66 Win32 build updates diff -r 66a15a093e61 -r 1d712c4f9b6c libpurple/Makefile.mingw --- a/libpurple/Makefile.mingw Thu Feb 18 21:59:36 2010 +0000 +++ b/libpurple/Makefile.mingw Thu Feb 18 23:32:18 2010 +0000 @@ -8,7 +8,7 @@ include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak TARGET = libpurple -NEEDED_DLLS = $(LIBXML2_TOP)/bin/libxml2.dll +NEEDED_DLLS = $(LIBXML2_TOP)/bin/libxml2-2.dll ## ## INCLUDE PATHS @@ -20,7 +20,7 @@ -I$(GTK_TOP)/include \ -I$(GTK_TOP)/include/glib-2.0 \ -I$(GTK_TOP)/lib/glib-2.0/include \ - -I$(LIBXML2_TOP)/include + -I$(LIBXML2_TOP)/include/libxml2 LIB_PATHS += -L$(GTK_TOP)/lib \ -L$(LIBXML2_TOP)/lib diff -r 66a15a093e61 -r 1d712c4f9b6c libpurple/protocols/bonjour/Makefile.mingw --- a/libpurple/protocols/bonjour/Makefile.mingw Thu Feb 18 21:59:36 2010 +0000 +++ b/libpurple/protocols/bonjour/Makefile.mingw Thu Feb 18 23:32:18 2010 +0000 @@ -30,7 +30,7 @@ -I$(GTK_TOP)/include/glib-2.0 \ -I$(GTK_TOP)/lib/glib-2.0/include \ -I$(BONJOUR_TOP)/Include \ - -I$(LIBXML2_TOP)/include \ + -I$(LIBXML2_TOP)/include/libxml2 \ -I$(PURPLE_TOP) \ -I$(PURPLE_TOP)/win32 \ -I$(PIDGIN_TREE_TOP) diff -r 66a15a093e61 -r 1d712c4f9b6c libpurple/protocols/jabber/Makefile.mingw --- a/libpurple/protocols/jabber/Makefile.mingw Thu Feb 18 21:59:36 2010 +0000 +++ b/libpurple/protocols/jabber/Makefile.mingw Thu Feb 18 23:32:18 2010 +0000 @@ -29,7 +29,7 @@ -I$(GTK_TOP)/include \ -I$(GTK_TOP)/include/glib-2.0 \ -I$(GTK_TOP)/lib/glib-2.0/include \ - -I$(LIBXML2_TOP)/include \ + -I$(LIBXML2_TOP)/include/libxml2 \ -I$(PURPLE_TOP) \ -I$(PURPLE_TOP)/win32 \ -I$(PIDGIN_TREE_TOP) diff -r 66a15a093e61 -r 1d712c4f9b6c libpurple/win32/global.mak --- a/libpurple/win32/global.mak Thu Feb 18 21:59:36 2010 +0000 +++ b/libpurple/win32/global.mak Thu Feb 18 23:32:18 2010 +0000 @@ -15,7 +15,7 @@ GTK_TOP ?= $(WIN32_DEV_TOP)/gtk_2_0-2.14 GTK_BIN ?= $(GTK_TOP)/bin BONJOUR_TOP ?= $(WIN32_DEV_TOP)/Bonjour_SDK -LIBXML2_TOP ?= $(WIN32_DEV_TOP)/libxml2-2.6.30 +LIBXML2_TOP ?= $(WIN32_DEV_TOP)/libxml2-2.7.3 MEANWHILE_TOP ?= $(WIN32_DEV_TOP)/meanwhile-1.0.2_daa2 NSPR_TOP ?= $(WIN32_DEV_TOP)/nspr-4.6.4 NSS_TOP ?= $(WIN32_DEV_TOP)/nss-3.11.4 diff -r 66a15a093e61 -r 1d712c4f9b6c libpurple/win32/libc_interface.c --- a/libpurple/win32/libc_interface.c Thu Feb 18 21:59:36 2010 +0000 +++ b/libpurple/win32/libc_interface.c Thu Feb 18 23:32:18 2010 +0000 @@ -33,6 +33,7 @@ #include "libc_internal.h" #include +/** This is redefined here because we can't include internal.h */ #ifdef ENABLE_NLS # include # include @@ -1047,29 +1048,12 @@ return ""; } +int wpurple_g_access (const gchar *filename, int mode); /** - * g_access: - * @filename: a pathname in the GLib file name encoding (UTF-8 on Windows) - * @mode: as in access() - * - * A wrapper for the POSIX access() function. This function is used to - * test a pathname for one or several of read, write or execute - * permissions, or just existence. On Windows, the underlying access() - * function in the C library only checks the READONLY attribute, and - * does not look at the ACL at all. Software that needs to handle file - * permissions on Windows more exactly should use the Win32 API. - * - * See the C library manual for more details about access(). - * - * Returns: zero if the pathname refers to an existing file system - * object that has all the tested permissions, or -1 otherwise or on - * error. - * - * Since: 2.8 + * @deprecated - remove for 3.0.0 */ int -wpurple_g_access (const gchar *filename, - int mode) +wpurple_g_access (const gchar *filename, int mode) { return g_access(filename, mode); } diff -r 66a15a093e61 -r 1d712c4f9b6c libpurple/win32/libc_interface.h --- a/libpurple/win32/libc_interface.h Thu Feb 18 21:59:36 2010 +0000 +++ b/libpurple/win32/libc_interface.h Thu Feb 18 23:32:18 2010 +0000 @@ -129,19 +129,14 @@ wpurple_gettimeofday( timeval, timezone ) /* stdio.h */ +#undef snprintf #define snprintf _snprintf +#undef vsnprintf #define vsnprintf _vsnprintf #define rename( oldname, newname ) \ wpurple_rename( oldname, newname ) -#ifdef g_rename -# undef g_rename -#endif -/* This is necessary because we want rename on win32 to be able to overwrite an existing file, it is done in internal.h if GLib < 2.6*/ -#define g_rename(oldname, newname) \ -wpurple_rename(oldname, newname) - /* sys/stat.h */ #define fchmod(a,b)