Mercurial > pidgin
comparison libgaim/internal.h @ 14912:390519f29a11
[gaim-migrate @ 17684]
g_access() is GTK >= 2.8 - add a wrapper (for wingaim I included the code from glib to deal with filename encoding issues)
Add inet_ntop() implementation for wingaim.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 06 Nov 2006 20:29:24 +0000 |
parents | 01db45fdd9cb |
children | 59189ce09f10 |
comparison
equal
deleted
inserted
replaced
14911:9f3be32d0913 | 14912:390519f29a11 |
---|---|
127 | 127 |
128 #if GLIB_CHECK_VERSION(2,6,0) | 128 #if GLIB_CHECK_VERSION(2,6,0) |
129 # include <glib/gstdio.h> | 129 # include <glib/gstdio.h> |
130 #endif | 130 #endif |
131 | 131 |
132 #ifdef _WIN32 | |
133 #include "win32dep.h" | |
134 #endif | |
135 | |
136 #if !GLIB_CHECK_VERSION(2,6,0) | 132 #if !GLIB_CHECK_VERSION(2,6,0) |
137 # define g_freopen freopen | 133 # define g_freopen freopen |
138 # define g_fopen fopen | 134 # define g_fopen fopen |
139 # define g_rmdir rmdir | 135 # define g_rmdir rmdir |
140 # define g_remove remove | 136 # define g_remove remove |
144 # define g_mkdir mkdir | 140 # define g_mkdir mkdir |
145 # define g_rename rename | 141 # define g_rename rename |
146 # define g_open open | 142 # define g_open open |
147 #endif | 143 #endif |
148 | 144 |
145 #if !GLIB_CHECK_VERSION(2,8,0) | |
146 # define g_access access | |
147 #endif | |
148 | |
149 #if !GLIB_CHECK_VERSION(2,10,0) | 149 #if !GLIB_CHECK_VERSION(2,10,0) |
150 # define g_slice_new(type) g_new(type, 1) | 150 # define g_slice_new(type) g_new(type, 1) |
151 # define g_slice_new0(type) g_new0(type, 1) | 151 # define g_slice_new0(type) g_new0(type, 1) |
152 # define g_slice_free(type, mem) g_free(mem) | 152 # define g_slice_free(type, mem) g_free(mem) |
153 #endif | |
154 | |
155 #ifdef _WIN32 | |
156 #include "win32dep.h" | |
153 #endif | 157 #endif |
154 | 158 |
155 /* ugly ugly ugly */ | 159 /* ugly ugly ugly */ |
156 /* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT | 160 /* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT |
157 * are only defined in Glib >= 2.4 */ | 161 * are only defined in Glib >= 2.4 */ |