comparison src/win32/libc_interface.h @ 10601:e46b51de549a

[gaim-migrate @ 12028] This makes us use wgaim_rename() as g_rename(), its ugly, but it allows us to rename to an existing new file. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 16 Feb 2005 03:57:23 +0000
parents 0f7452b1f777
children d2e44c8085e0
comparison
equal deleted inserted replaced
10600:9887014b7390 10601:e46b51de549a
123 123
124 /* stdio.h */ 124 /* stdio.h */
125 #define snprintf _snprintf 125 #define snprintf _snprintf
126 #define vsnprintf _vsnprintf 126 #define vsnprintf _vsnprintf
127 127
128 #if !GLIB_CHECK_VERSION(2,6,0)
129 /* I think that this can probably go away, in favor of g_rename() */
130 extern int wgaim_rename(const char *oldname, const char *newname); 128 extern int wgaim_rename(const char *oldname, const char *newname);
131 #define rename( oldname, newname ) \ 129 #define rename( oldname, newname ) \
132 wgaim_rename( oldname, newname ) 130 wgaim_rename( oldname, newname )
131
132 #if GLIB_CHECK_VERSION(2,6,0)
133 #ifdef g_rename
134 # undef g_rename
133 #endif 135 #endif
136 /* This is necessary because we want rename on win32 to be able to overwrite an existing file, it is done in internal.h if GLib < 2.6*/
137 #define g_rename(oldname, newname) \
138 wgaim_rename(oldname, newname)
139 #endif
140
134 141
135 /* sys/stat.h */ 142 /* sys/stat.h */
136 143
137 #if !GLIB_CHECK_VERSION(2,6,0) 144 #if !GLIB_CHECK_VERSION(2,6,0)
138 #define mkdir(a,b) _mkdir((a)) 145 #define mkdir(a,b) _mkdir((a))