summaryrefslogtreecommitdiff
path: root/src/Fl_File_Icon2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_File_Icon2.cxx')
-rw-r--r--src/Fl_File_Icon2.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_File_Icon2.cxx b/src/Fl_File_Icon2.cxx
index b7a23ac7e..29ab50191 100644
--- a/src/Fl_File_Icon2.cxx
+++ b/src/Fl_File_Icon2.cxx
@@ -50,9 +50,12 @@
#include <FL/math.h>
#include <sys/types.h>
#include <sys/stat.h>
-#if defined(WIN32) && ! defined(__CYGWIN__)
+#if defined(WIN32) && !defined(__CYGWIN__)
# include <io.h>
# define F_OK 0
+// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
+// on Windows, which is supposed to be POSIX compliant...
+# define access _access
#else
# include <unistd.h>
#endif // WIN32