mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
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:
parent
81aac64b38
commit
4f3922f249
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user