Mercurial > pidgin.yaz
diff src/internal.h @ 10589:0f7452b1f777
[gaim-migrate @ 11994]
Use GLib 2.6's gstdio functions. This should fix gaim not liking non-ascii filenames in win32.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 11 Feb 2005 05:10:40 +0000 |
parents | 529111933c9c |
children | 096020ae09a9 |
line wrap: on
line diff
--- a/src/internal.h Fri Feb 11 03:51:26 2005 +0000 +++ b/src/internal.h Fri Feb 11 05:10:40 2005 +0000 @@ -121,11 +121,28 @@ #define PATHSIZE 1024 #include <glib.h> +#if GLIB_CHECK_VERSION(2,6,0) +# include <glib/gstdio.h> +#endif #ifdef _WIN32 #include "win32dep.h" #endif +#if !GLIB_CHECK_VERSION(2,6,0) +# define g_freopen freopen +# define g_fopen fopen +# define g_rmdir rmdir +# define g_remove remove +# define g_unlink unlink +# define g_lstat lstat +# define g_stat stat +# define g_mkdir mkdir +# define g_rename rename +# define g_open open +#endif + + /* ugly ugly ugly */ /* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT * are only defined in Glib >= 2.4 */