projects
/
dana
/
cg-glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5df5e8
)
Define X_OK if not defined (MSVC).
author
Tor Lillqvist
<tml@novell.com>
Sat, 7 Jun 2008 04:03:47 +0000
(
04:03
+0000)
committer
Tor Lillqvist
<tml@src.gnome.org>
Sat, 7 Jun 2008 04:03:47 +0000
(
04:03
+0000)
2008-06-07 Tor Lillqvist <tml@novell.com>
* glib/gstdio.c (g_access): Define X_OK if not defined (MSVC).
svn path=/trunk/; revision=6970
ChangeLog
patch
|
blob
|
history
glib/gstdio.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 8dd0675799d6aab085ab371107859e392601abdc..2a4b322959c056a0d8b2221c48ea6f62de11f555 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,7
@@
+2008-06-07 Tor Lillqvist <tml@novell.com>
+
+ * glib/gstdio.c (g_access): Define X_OK if not defined (MSVC).
+
2008-06-02 Yevgen Muntyan <muntyan@tamu.edu>
Bug 531403 – g_utf8_collate broken on Mac.
diff --git
a/glib/gstdio.c
b/glib/gstdio.c
index 285bfe91714d964e77cc42b90113706d8aa6c128..674ded220852c33358cbb9378442e6e05ca2a8e2 100644
(file)
--- a/
glib/gstdio.c
+++ b/
glib/gstdio.c
@@
-85,6
+85,10
@@
g_access (const gchar *filename,
return -1;
}
+#ifndef X_OK
+#define X_OK 1
+#endif
+
retval = _waccess (wfilename, mode & ~X_OK);
save_errno = errno;