Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
10588:529111933c9c | 10589:0f7452b1f777 |
---|---|
119 #endif | 119 #endif |
120 | 120 |
121 #define PATHSIZE 1024 | 121 #define PATHSIZE 1024 |
122 | 122 |
123 #include <glib.h> | 123 #include <glib.h> |
124 #if GLIB_CHECK_VERSION(2,6,0) | |
125 # include <glib/gstdio.h> | |
126 #endif | |
124 | 127 |
125 #ifdef _WIN32 | 128 #ifdef _WIN32 |
126 #include "win32dep.h" | 129 #include "win32dep.h" |
127 #endif | 130 #endif |
131 | |
132 #if !GLIB_CHECK_VERSION(2,6,0) | |
133 # define g_freopen freopen | |
134 # define g_fopen fopen | |
135 # define g_rmdir rmdir | |
136 # define g_remove remove | |
137 # define g_unlink unlink | |
138 # define g_lstat lstat | |
139 # define g_stat stat | |
140 # define g_mkdir mkdir | |
141 # define g_rename rename | |
142 # define g_open open | |
143 #endif | |
144 | |
128 | 145 |
129 /* ugly ugly ugly */ | 146 /* ugly ugly ugly */ |
130 /* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT | 147 /* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT |
131 * are only defined in Glib >= 2.4 */ | 148 * are only defined in Glib >= 2.4 */ |
132 #ifndef G_GINT64_MODIFIER | 149 #ifndef G_GINT64_MODIFIER |