Define X_OK if not defined (MSVC).

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
This commit is contained in:
Tor Lillqvist 2008-06-07 04:03:47 +00:00 committed by Tor Lillqvist
parent c5df5e88d9
commit fa7e176e4b
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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;