changeset 4464:e926d3bdfd14

[gaim-migrate @ 4739] There is absolutely no need for a #ifdef _WIN32 here. Just removing it... We can rename on all platforms. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 29 Jan 2003 23:34:04 +0000
parents c22bbfd75fd6
children 6e37eb000b7a
files src/protocols/msn/msn.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Wed Jan 29 23:04:12 2003 +0000
+++ b/src/protocols/msn/msn.c	Wed Jan 29 23:34:04 2003 +0000
@@ -1511,19 +1511,20 @@
 				unlink(md->passport);
 				g_free(md->passport);
 			}
-#ifdef _WIN32
 			else {
-				/* Renaming file with .html extension, so that win32 open_url will work */
-				char* tmp;
-				if((tmp=g_strdup_printf("%s.html", md->passport)) != NULL) {
-					if(rename(md->passport, tmp) == 0) {
+				/*
+				 * Renaming file with .html extension, so that
+				 * win32 open_url will work.
+				 */
+				char *tmp;
+				if ((tmp = g_strdup_printf("%s.html", md->passport)) != NULL) {
+					if (rename(md->passport, tmp) == 0) {
 						g_free(md->passport);
 						md->passport = tmp;
 					} else
 						g_free(tmp);
 				}
 			}
-#endif
 		}
 	} else if (!g_strncasecmp(buf, "SYN", 3)) {
 	} else if (!g_strncasecmp(buf, "USR", 3)) {