pidgin: 5a35c52f: Fix from the QuteCom folks to compile wi...

datallah at pidgin.im datallah at pidgin.im
Thu Jan 1 18:21:02 EST 2009


-----------------------------------------------------------------
Revision: 5a35c52faacfbdaf503309fcdf10842cfd126c3f
Ancestor: 59dabca54f8fec54f44c38eaaaafb29086c7ade7
Author: datallah at pidgin.im
Date: 2009-01-01T23:17:11
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5a35c52faacfbdaf503309fcdf10842cfd126c3f

Modified files:
        libpurple/win32/libc_interface.c

ChangeLog: 

Fix from the QuteCom folks to compile with Glib < 2.8.5 with MSVC. Fixes #7761. Also some minor cleanup from me.

-------------- next part --------------
============================================================
--- libpurple/win32/libc_interface.c	238013cbcda3082f3bde394d19ae41f596738a60
+++ libpurple/win32/libc_interface.c	1936eceecbd9824702dca7009484a4c21bd41997
@@ -31,13 +31,7 @@
 #include "config.h"
 #include "debug.h"
 #include "libc_internal.h"
-#if GLIB_CHECK_VERSION(2,6,0)
-# include <glib/gstdio.h>
-#else
-#define g_remove remove
-#define g_rename rename
-#define g_stat stat
-#endif
+#include <glib/gstdio.h>
 
 #ifdef ENABLE_NLS
 #  include <locale.h>
@@ -58,6 +52,9 @@
 #  define dngettext(Domain, Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural))
 #endif
 
+#ifndef S_ISDIR
+# define S_ISDIR(m) (((m)&S_IFDIR)==S_IFDIR)
+#endif
 
 static char errbuf[1024];
 


More information about the Commits mailing list