summaryrefslogtreecommitdiff
path: root/src/fileio_func.h
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-07-19 19:21:47 +0000
committermichi_cc <michi_cc@openttd.org>2012-07-19 19:21:47 +0000
commit36181b3fb27dbb15bb3468c3ebcbbbad5382d70d (patch)
treeeb2844eee18a00d6006a1e8670eeb1e0489fcea7 /src/fileio_func.h
parent1792c186c7d942b1c28f0382bf7caa685d8c72af (diff)
downloadopenttd-36181b3fb27dbb15bb3468c3ebcbbbad5382d70d.tar.xz
(svn r24417) -Codechange: [Win32] Don't needlessly include windows.h in a commonly used header.
Diffstat (limited to 'src/fileio_func.h')
-rw-r--r--src/fileio_func.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h
index 6dea50e9c..25d961bc0 100644
--- a/src/fileio_func.h
+++ b/src/fileio_func.h
@@ -116,7 +116,6 @@ DECLARE_ENUM_AS_BIT_SET(TarScanner::Mode)
/* Implementation of opendir/readdir/closedir for Windows */
#if defined(WIN32)
-#include <windows.h>
struct DIR;
struct dirent { // XXX - only d_name implemented
@@ -127,19 +126,6 @@ struct dirent { // XXX - only d_name implemented
DIR *dir;
};
-struct DIR {
- HANDLE hFind;
- /* the dirent returned by readdir.
- * note: having only one global instance is not possible because
- * multiple independent opendir/readdir sequences must be supported. */
- dirent ent;
- WIN32_FIND_DATA fd;
- /* since opendir calls FindFirstFile, we need a means of telling the
- * first call to readdir that we already have a file.
- * that's the case iff this is true */
- bool at_first_entry;
-};
-
DIR *opendir(const TCHAR *path);
struct dirent *readdir(DIR *d);
int closedir(DIR *d);