Thu, 01 Jan 2009 23:17:11 +0000
Fix from the QuteCom folks to compile with Glib < 2.8.5 with MSVC. Fixes #7761. Also some minor cleanup from me.
| libpurple/win32/libc_interface.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/win32/libc_interface.c Thu Jan 01 23:07:15 2009 +0000 +++ b/libpurple/win32/libc_interface.c Thu Jan 01 23:17:11 2009 +0000 @@ -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];