# HG changeset patch # User Daniel Atallah # Date 1230851831 0 # Node ID 0ea515a3f70c47bf42132f3dde463927617a498a # Parent 8b55fcc6adde908e07197b328255c91813270d12 Fix from the QuteCom folks to compile with Glib < 2.8.5 with MSVC. Fixes #7761. Also some minor cleanup from me. diff -r 8b55fcc6adde -r 0ea515a3f70c libpurple/win32/libc_interface.c --- 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 -#else -#define g_remove remove -#define g_rename rename -#define g_stat stat -#endif +#include #ifdef ENABLE_NLS # include @@ -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];