[totem-pl-parser] rename macro __MINGW32__ to _WIN32 to make it work with msvc
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] rename macro __MINGW32__ to _WIN32 to make it work with msvc
- Date: Tue, 20 Apr 2010 09:15:21 +0000 (UTC)
commit 145f8d281f5abfe22eac027f4e7186d9a4f0e52f
Author: Shixin Zeng <zeng shixin gmail com>
Date: Mon Apr 19 17:20:28 2010 -0500
rename macro __MINGW32__ to _WIN32 to make it work with msvc
https://bugzilla.gnome.org/show_bug.cgi?id=575373
lib/asprintf.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/asprintf.c b/lib/asprintf.c
index 755ecfe..2484231 100644
--- a/lib/asprintf.c
+++ b/lib/asprintf.c
@@ -21,14 +21,14 @@ int totem_private_asprintf(char **out, const char *fmt, ...)
/* Warning: tmpfile() does not work well on Windows (MinGW)
* if user does not have write access on the drive where
* working dir is? */
-#ifdef __MINGW32__
+#ifdef _WIN32
/* file_name = G_tempfile(); */
GetTempPath ( 2000, dir_name );
GetTempFileName ( dir_name, "asprintf", 0, file_name );
fp = fopen ( file_name, "w+" );
#else
fp = tmpfile();
-#endif /* __MINGW32__ */
+#endif /* _WIN32 */
if ( fp ) {
int count;
@@ -47,9 +47,9 @@ int totem_private_asprintf(char **out, const char *fmt, ...)
}
}
fclose(fp);
-#ifdef __MINGW32__
+#ifdef _WIN32
unlink ( file_name );
-#endif /* __MINGW32__ */
+#endif /* _WIN32 */
}
va_end(ap);
*out = work;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]