diff options
author | Hardeep Sidhu <dyp@pobox.com> | 2004-06-14 07:00:50 +0000 |
---|---|---|
committer | Hardeep Sidhu <dyp@pobox.com> | 2004-06-14 07:00:50 +0000 |
commit | fb26bfb662e7939b6646d290ad658fe1bdbffc8e (patch) | |
tree | 6db2aa5049259834333885891f7af6903625cbe2 /uisimulator/common | |
parent | 2dafebfe1698ee32cce48b9cf4cb3b59a17b295d (diff) | |
download | rockbox-fb26bfb662e7939b6646d290ad658fe1bdbffc8e.tar.gz 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.h | 5 | ||||
-rw-r--r-- | uisimulator/common/io.c | 5 |
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 @@ | |||
32 | #ifdef WIN32 | 32 | #ifdef WIN32 |
33 | #ifndef _commit | 33 | #ifndef _commit |
34 | extern int _commit( int handle ); | 34 | extern int _commit( int handle ); |
35 | |||
36 | #ifdef _MSC_VER | ||
37 | typedef unsigned int mode_t; | ||
38 | #endif | ||
39 | |||
35 | #endif | 40 | #endif |
36 | #endif | 41 | #endif |
37 | 42 | ||
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 @@ | |||
27 | #elif !defined(WIN32) | 27 | #elif !defined(WIN32) |
28 | #include <sys/vfs.h> | 28 | #include <sys/vfs.h> |
29 | #endif | 29 | #endif |
30 | |||
31 | #ifndef _MSC_VER | ||
30 | #include <dirent.h> | 32 | #include <dirent.h> |
31 | #include <unistd.h> | 33 | #include <unistd.h> |
34 | #else | ||
35 | #include "dir-win32.h" | ||
36 | #endif | ||
32 | 37 | ||
33 | #include <fcntl.h> | 38 | #include <fcntl.h> |
34 | #include "debug.h" | 39 | #include "debug.h" |