diff src/win32/libc_interface.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 45bcc3edd8c3
children e46b51de549a
line wrap: on
line diff
--- a/src/win32/libc_interface.h	Fri Feb 11 03:51:26 2005 +0000
+++ b/src/win32/libc_interface.h	Fri Feb 11 05:10:40 2005 +0000
@@ -27,6 +27,7 @@
 #include <io.h>
 #include <errno.h>
 #include "libc_internal.h"
+#include <glib.h>
 
 /* sys/socket.h */
 extern int wgaim_socket(int namespace, int style, int protocol);
@@ -67,7 +68,9 @@
 #define fcntl( fd, command, val ) \
 wgaim_fcntl( fd, command, val )
 
-#define open( args... ) _open( args )
+#if !GLIB_CHECK_VERSION(2,6,0)
+#	define open( args... ) _open( args )
+#endif
 
 /* arpa/inet.h */
 extern int wgaim_inet_aton(const char *name, struct in_addr *addr);
@@ -90,10 +93,6 @@
 #define strerror( errornum ) \
 wgaim_strerror( errornum )
 
-extern char* wgaim_strsep(char **stringp, const char *delim);
-#define strsep( stringp, delim ) \
-wgaim_strsep( stringp, delim )
-
 #define bzero( dest, size ) memset( dest, 0, size )
 
 /* unistd.h */
@@ -126,12 +125,18 @@
 #define snprintf _snprintf
 #define vsnprintf _vsnprintf
 
+#if !GLIB_CHECK_VERSION(2,6,0)
+/* I think that this can probably go away, in favor of g_rename() */
 extern int wgaim_rename(const char *oldname, const char *newname);
 #define rename( oldname, newname ) \
 wgaim_rename( oldname, newname )
+#endif
 
 /* sys/stat.h */
+
+#if !GLIB_CHECK_VERSION(2,6,0)
 #define mkdir(a,b) _mkdir((a))
+#endif
 #define fchmod(a,b)
 
 /* time.h */