summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-03-07 18:58:28 +0000
committerDarkvater <darkvater@openttd.org>2007-03-07 18:58:28 +0000
commit2536a14abd95098fa752835dce90db679a557721 (patch)
treeba99aff4f6b2c185df22ce8dd28562996f0a5441 /src/fios.h
parent5e1351b377bbb44238880a22b74dcc7793c89691 (diff)
downloadopenttd-2536a14abd95098fa752835dce90db679a557721.tar.xz
(svn r9055) -Codechange: Change windows unicode handling and allow a pure non-unicode build to function. Win9x binaries will be possible with mingw/nightly system.
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fios.h b/src/fios.h
index bb119cc88..b1d923090 100644
--- a/src/fios.h
+++ b/src/fios.h
@@ -59,7 +59,7 @@ int CDECL compare_FiosItems(const void *a, const void *b);
struct DIR;
struct dirent { // XXX - only d_name implemented
- wchar_t *d_name; // name of found file
+ TCHAR *d_name; // name of found file
/* little hack which will point to parent DIR struct which will
* save us a call to GetFileAttributes if we want information
* about the file (for example in function fio_bla) */
@@ -72,14 +72,14 @@ struct DIR {
* note: having only one global instance is not possible because
* multiple independent opendir/readdir sequences must be supported. */
dirent ent;
- WIN32_FIND_DATAW fd;
+ 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 wchar_t *path);
+DIR *opendir(const TCHAR *path);
struct dirent *readdir(DIR *d);
int closedir(DIR *d);
#else