summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/msvc.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-09-17 01:53:41 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-09-17 01:56:35 +0200
commite65b29e9f2a9a79731f38787384f9c877eec430f (patch)
treedf729dca05bd679dccf7cc336974e4795099ce47 /crawl-ref/source/msvc.h
parent0fac9b0ec9f22978b94594373d65c5a70a4441fd (diff)
downloadcrawl-ref-e65b29e9f2a9a79731f38787384f9c877eec430f.tar.gz
crawl-ref-e65b29e9f2a9a79731f38787384f9c877eec430f.zip
Handle filenames with non-ascii characters.
Only iostreams functions are left; on Windows they don't support Unicode so a workaround will be needed.
Diffstat (limited to 'crawl-ref/source/msvc.h')
-rw-r--r--crawl-ref/source/msvc.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/crawl-ref/source/msvc.h b/crawl-ref/source/msvc.h
index e5cab7bbdf..485ac8c66f 100644
--- a/crawl-ref/source/msvc.h
+++ b/crawl-ref/source/msvc.h
@@ -21,7 +21,6 @@
#define strlwr _strlwr
#define strncasecmp _strnicmp
#define strnicmp _strnicmp
-#define unlink _unlink
#define ftruncate _chsize
#define putenv _putenv
@@ -43,27 +42,6 @@
#pragma warning( disable : 4244 )
-// ----------------------------------------------------------------------
-// dirent.h replacement
-// ----------------------------------------------------------------------
-
-#define DT_DIR 4
-#define DT_REG 8
-
-struct DIR;
-struct dirent
-{
- // ino_t d_ino;
- unsigned short d_reclen;
- unsigned char d_type;
- unsigned short d_namlen;
- char d_name[255];
-};
-
-DIR* opendir(const char* path);
-dirent* readdir(DIR*);
-int closedir(DIR*);
-
inline double round(double x)
{
if (x >= 0.0)