summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2004-04-20 21:32:43 +0000
committerHardeep Sidhu <dyp@pobox.com>2004-04-20 21:32:43 +0000
commitffe0da5b25e3bbe6490d2e8fdd17f25277435b3f (patch)
treec2ca47e2d00b61fd9ae5013a0f6f3139f0bcd0f9 /uisimulator
parent6eb60ebb0845e306e0896732a315c2ed9ac6232f (diff)
downloadrockbox-ffe0da5b25e3bbe6490d2e8fdd17f25277435b3f.tar.gz
rockbox-ffe0da5b25e3bbe6490d2e8fdd17f25277435b3f.tar.bz2
rockbox-ffe0da5b25e3bbe6490d2e8fdd17f25277435b3f.zip
Fixed win32 sim errors/warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4526 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/win32/dir.h5
-rw-r--r--uisimulator/win32/rockbox.dsp4
-rw-r--r--uisimulator/win32/timefuncs.h1
3 files changed, 8 insertions, 2 deletions
diff --git a/uisimulator/win32/dir.h b/uisimulator/win32/dir.h
index acf1c93879..da5064c1fb 100644
--- a/uisimulator/win32/dir.h
+++ b/uisimulator/win32/dir.h
@@ -70,9 +70,10 @@ typedef struct DIRtag
#ifndef DIRFUNCTIONS_DEFINED
-extern DIR* opendir(char* name);
+extern DIR* opendir(const char* name);
extern int closedir(DIR* dir);
-extern int mkdir(char* name, int mode);
+extern int mkdir(const char* name, int mode);
+extern int rmdir(const char* name);
extern struct dirent* readdir(DIR* dir);
diff --git a/uisimulator/win32/rockbox.dsp b/uisimulator/win32/rockbox.dsp
index d89ed35c57..1337b7a651 100644
--- a/uisimulator/win32/rockbox.dsp
+++ b/uisimulator/win32/rockbox.dsp
@@ -211,6 +211,10 @@ SOURCE=..\..\firmware\common\sprintf.c
SOURCE=..\..\firmware\common\strtok.c
# End Source File
+# Begin Source File
+
+SOURCE=..\..\firmware\common\timefuncs.c
+# End Source File
# End Group
# Begin Group "Apps"
diff --git a/uisimulator/win32/timefuncs.h b/uisimulator/win32/timefuncs.h
index 59e8b249eb..57bb3de5ce 100644
--- a/uisimulator/win32/timefuncs.h
+++ b/uisimulator/win32/timefuncs.h
@@ -1,3 +1,4 @@
+#include <stdio.h>
#include <time.h>
#include <stdbool.h>