summaryrefslogtreecommitdiff
path: root/firmware/include/file.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2012-03-03 18:54:47 +0100
committerFrank Gevaerts <frank@gevaerts.be>2012-03-03 18:54:47 +0100
commitc6d20104eb1ba2beae266dff7eba655b9ab9576e (patch)
tree3d09bf6bb74b4d5a065c12ad732b76c68b28d340 /firmware/include/file.h
parentf7a4ee2ddce3e32551e209cccaf19d6d0f041600 (diff)
downloadrockbox-c6d20104eb1ba2beae266dff7eba655b9ab9576e.tar.gz
rockbox-c6d20104eb1ba2beae266dff7eba655b9ab9576e.zip
Fix __PCTOOL__ dependencies on SIMULATOR
* filesize() is not POSIX, so it doesn't need stubbing or redirecting * make the various directory functions use the sim_ versions for PCTOOL * PCTOOL needs generic byteswap functions * fix the database makefile to not use -DSIMULATOR anymore Change-Id: Ic6abc4f662830b85626c751a472fa4a03e844871
Diffstat (limited to 'firmware/include/file.h')
-rw-r--r--firmware/include/file.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/firmware/include/file.h b/firmware/include/file.h
index ac856edb8c..198fccbc7b 100644
--- a/firmware/include/file.h
+++ b/firmware/include/file.h
@@ -47,7 +47,6 @@ extern int app_creat(const char *name, mode_t mode);
47extern int app_remove(const char* pathname); 47extern int app_remove(const char* pathname);
48extern int app_rename(const char* path, const char* newname); 48extern int app_rename(const char* path, const char* newname);
49# if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) 49# if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA))
50# define filesize(x) sim_filesize(x)
51# define fsync(x) sim_fsync(x) 50# define fsync(x) sim_fsync(x)
52# define ftruncate(x,y) sim_ftruncate(x,y) 51# define ftruncate(x,y) sim_ftruncate(x,y)
53# define lseek(x,y,z) sim_lseek(x,y,z) 52# define lseek(x,y,z) sim_lseek(x,y,z)
@@ -60,7 +59,6 @@ extern int app_rename(const char* path, const char* newname);
60# define creat(x,m) sim_creat(x,m) 59# define creat(x,m) sim_creat(x,m)
61# define remove(x) sim_remove(x) 60# define remove(x) sim_remove(x)
62# define rename(x,y) sim_rename(x,y) 61# define rename(x,y) sim_rename(x,y)
63# define filesize(x) sim_filesize(x)
64# define fsync(x) sim_fsync(x) 62# define fsync(x) sim_fsync(x)
65# define ftruncate(x,y) sim_ftruncate(x,y) 63# define ftruncate(x,y) sim_ftruncate(x,y)
66# define lseek(x,y,z) sim_lseek(x,y,z) 64# define lseek(x,y,z) sim_lseek(x,y,z)