[glib/glib-2-24] Clarify _g_stat_struct mess
- From: Tor Lillqvist <tml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-24] Clarify _g_stat_struct mess
- Date: Tue, 30 Mar 2010 16:45:32 +0000 (UTC)
commit 70a4217ba35492cd8e3549ca8da3fcc950421790
Author: Tor Lillqvist <tml iki fi>
Date: Tue Mar 30 19:39:19 2010 +0300
Clarify _g_stat_struct mess
Use "struct stat" instead of "struct _stat" in the MinGW-or-64-bit
case. Should fix bug #614372.
glib/gstdio.c | 2 +-
glib/gstdio.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gstdio.c b/glib/gstdio.c
index 542a95e..5e33c50 100644
--- a/glib/gstdio.c
+++ b/glib/gstdio.c
@@ -473,7 +473,7 @@ g_stat (const gchar *filename,
(!g_path_is_absolute (filename) || len > g_path_skip_root (filename) - filename))
wfilename[len] = '\0';
- retval = _wstat (wfilename, buf);
+ retval = _wstat (wfilename, (void*) buf);
save_errno = errno;
g_free (wfilename);
diff --git a/glib/gstdio.h b/glib/gstdio.h
index b61bc6b..501186b 100644
--- a/glib/gstdio.h
+++ b/glib/gstdio.h
@@ -110,7 +110,7 @@ int g_chdir (const gchar *path);
#else
-#define _g_stat_struct _stat
+#define _g_stat_struct stat
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]