After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 537006 - gstdio.c: X_OK is not defined in MSVC.
gstdio.c: X_OK is not defined in MSVC.
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
2.17.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-06 16:39 UTC by Kazuki Iwamoto
Modified: 2008-06-07 04:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2008-06-06 16:39:50 UTC
Please describe the problem:
X_OK is not defined in the headers of Microsoft's runtime library.
If X_OK is not defined, we should define X_OK before calling waccess.

Steps to reproduce:
1. compile gstdio.c by Visual C++.


Actual results:
Following message is displayed.(Visual C++)
gstdio.c(88) : error C2065: 'X_OK' : undeclared identifier

Expected results:
Insert following codes before waccess.
#ifndef X_OK
# define X_OK 1
#endif /* not X_OK */

Does this happen every time?
Revision 6961

Other information:
Comment 1 Tor Lillqvist 2008-06-07 04:13:03 UTC
By an extraordinary coincidence I noticed this myself right now some minutes ago and committed a fix...

2008-06-07  Tor Lillqvist  <tml@novell.com>

	* glib/gstdio.c (g_access): Define X_OK if not defined (MSVC).