src/internal.h

changeset 10589
4e10236e06d4
parent 10588
b66302d38f7d
child 11137
cf40226ddff7
equal deleted inserted replaced
10588:b66302d38f7d 10589:4e10236e06d4
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

mercurial