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=/branches/glib-2-16/; revision=6971
This commit is contained in:
Tor Lillqvist 2008-06-07 04:05:03 +00:00 committed by Tor Lillqvist
parent 81aac64b38
commit 4f3922f249
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-05-30 Tor Lillqvist <tml@novell.com>
* glib/gstdio.c (g_access) [Win32]: Mask out X_OK to avoid problem

View File

@ -84,6 +84,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;