Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/win32/libc_interface.h Tue Feb 15 02:20:27 2005 +0000 +++ b/src/win32/libc_interface.h Wed Feb 16 03:57:23 2005 +0000 @@ -125,12 +125,19 @@ #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 ) + +#if GLIB_CHECK_VERSION(2,6,0) +#ifdef g_rename +# undef g_rename #endif +/* 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*/ +#define g_rename(oldname, newname) \ +wgaim_rename(oldname, newname) +#endif + /* sys/stat.h */