summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2011-05-28 03:23:34 +0000
committerglx <glx@openttd.org>2011-05-28 03:23:34 +0000
commit986d5e950d074d86f5d6098c64946a7b9d2f60b7 (patch)
tree3236744c94f548e11870c2905d4bc7228554be47 /src
parent6e3ef9fa1a6705e91467678ce615c630ee4d343d (diff)
downloadopenttd-986d5e950d074d86f5d6098c64946a7b9d2f60b7.tar.xz
(svn r22502) -Fix (r22501): WIN32 compilation
Diffstat (limited to 'src')
-rw-r--r--src/fileio.cpp1
-rw-r--r--src/fios.cpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 5ddce0570..0517ca36d 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -17,6 +17,7 @@
#include "tar_type.h"
#ifdef WIN32
#include <windows.h>
+# define access _taccess
#elif defined(__HAIKU__)
#include <Path.h>
#include <storage/FindDirectory.h>
diff --git a/src/fios.cpp b/src/fios.cpp
index 2856c0c5a..97eb13b18 100644
--- a/src/fios.cpp
+++ b/src/fios.cpp
@@ -19,9 +19,7 @@
#include "string_func.h"
#include <sys/stat.h>
-#ifdef WIN32
-# define access _taccess
-#else
+#ifndef WIN32
# include <unistd.h>
#endif /* WIN32 */