summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2007-10-09 17:51:02 +0000
committerJonas Häggqvist <rasher@rasher.dk>2007-10-09 17:51:02 +0000
commitb24631c07fb30b74717dce709b7736d661e7d442 (patch)
tree581d9e9bc6f6662d1818d3522619991c14bc11d9 /uisimulator/common
parentb8eb2a89ad911df3c236b95b9eb3cc365a1f8e09 (diff)
downloadrockbox-b24631c07fb30b74717dce709b7736d661e7d442.tar.gz
rockbox-b24631c07fb30b74717dce709b7736d661e7d442.tar.bz2
rockbox-b24631c07fb30b74717dce709b7736d661e7d442.zip
Fix crosscompiling the uisim with mingw32 by adding a definition of CLOSE
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15047 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 3257b56be6..e91ddc3ccd 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -109,6 +109,7 @@ extern int _wrmdir(const wchar_t*);
#define CLOSEDIR(a) (_wclosedir)(a)
#define STAT(a,b) (_wstat)(UTF8_TO_OS(a),b)
#define OPEN(a,b,c) (_wopen)(UTF8_TO_OS(a),b,c)
+#define CLOSE(a) (close)(a)
#define REMOVE(a) (_wremove)(UTF8_TO_OS(a))
#define RENAME(a,b) (_wrename)(UTF8_TO_OS(a),utf8_to_ucs2(b,convbuf2))