summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2004-06-14 07:00:50 +0000
committerHardeep Sidhu <dyp@pobox.com>2004-06-14 07:00:50 +0000
commitfb26bfb662e7939b6646d290ad658fe1bdbffc8e (patch)
tree6db2aa5049259834333885891f7af6903625cbe2 /uisimulator/common
parent2dafebfe1698ee32cce48b9cf4cb3b59a17b295d (diff)
downloadrockbox-fb26bfb662e7939b6646d290ad658fe1bdbffc8e.tar.gz
rockbox-fb26bfb662e7939b6646d290ad658fe1bdbffc8e.tar.bz2
rockbox-fb26bfb662e7939b6646d290ad658fe1bdbffc8e.zip
Fixed VC++ build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4739 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/file.h5
-rw-r--r--uisimulator/common/io.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/uisimulator/common/file.h b/uisimulator/common/file.h
index 8d91b61831..0e50031556 100644
--- a/uisimulator/common/file.h
+++ b/uisimulator/common/file.h
@@ -32,6 +32,11 @@
#ifdef WIN32
#ifndef _commit
extern int _commit( int handle );
+
+#ifdef _MSC_VER
+typedef unsigned int mode_t;
+#endif
+
#endif
#endif
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 745e417fa6..e321c1adcc 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -27,8 +27,13 @@
#elif !defined(WIN32)
#include <sys/vfs.h>
#endif
+
+#ifndef _MSC_VER
#include <dirent.h>
#include <unistd.h>
+#else
+#include "dir-win32.h"
+#endif
#include <fcntl.h>
#include "debug.h"