Mercurial > pidgin.yaz
diff libgaim/win32/libc_interface.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 | ab8a105eff62 |
children | 59189ce09f10 |
line wrap: on
line diff
--- a/libgaim/win32/libc_interface.h Mon Nov 06 07:52:17 2006 +0000 +++ b/libgaim/win32/libc_interface.h Mon Nov 06 20:29:24 2006 +0000 @@ -72,15 +72,16 @@ #define fcntl( fd, command, val ) \ wgaim_fcntl( fd, command, val ) -#if !GLIB_CHECK_VERSION(2,6,0) -# define open( args... ) _open( args ) -#endif - /* arpa/inet.h */ int wgaim_inet_aton(const char *name, struct in_addr *addr); #define inet_aton( name, addr ) \ wgaim_inet_aton( name, addr ) +const char * +wgaim_inet_ntop (int af, const void *src, char *dst, socklen_t cnt); +#define inet_ntop( af, src, dst, cnt ) \ +wgaim_inet_ntop( af, src, dst, cnt ) + /* netdb.h */ struct hostent* wgaim_gethostbyname(const char *name); #define gethostbyname( name ) \ @@ -120,6 +121,13 @@ #define close( fd ) \ wgaim_close( fd ) +#if !GLIB_CHECK_VERSION(2,8,0) +int wgaim_g_access(const gchar *filename, int mode); +#undef g_access +#define g_access( filename, mode) \ +wgaim_g_access( filename, mode ) +#endif + #ifndef sleep #define sleep(x) Sleep((x)*1000) #endif @@ -153,9 +161,6 @@ /* sys/stat.h */ -#if !GLIB_CHECK_VERSION(2,6,0) -#define mkdir(a,b) _mkdir((a)) -#endif #define fchmod(a,b) /* time.h */