diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/system.h | 2 | ||||
-rw-r--r-- | firmware/include/dir_uncached.h | 2 | ||||
-rw-r--r-- | firmware/include/file.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index d34ff995f7..b33edc6d3e 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -191,6 +191,8 @@ enum { | |||
191 | #elif defined(HAVE_SDL) /* SDL build */ | 191 | #elif defined(HAVE_SDL) /* SDL build */ |
192 | #include "system-sdl.h" | 192 | #include "system-sdl.h" |
193 | #define NEED_GENERIC_BYTESWAPS | 193 | #define NEED_GENERIC_BYTESWAPS |
194 | #elif defined(__PCTOOL__) | ||
195 | #define NEED_GENERIC_BYTESWAPS | ||
194 | #endif | 196 | #endif |
195 | #include "bitswap.h" | 197 | #include "bitswap.h" |
196 | 198 | ||
diff --git a/firmware/include/dir_uncached.h b/firmware/include/dir_uncached.h index 85f371f972..017b86cc39 100644 --- a/firmware/include/dir_uncached.h +++ b/firmware/include/dir_uncached.h | |||
@@ -33,7 +33,7 @@ struct dirinfo { | |||
33 | #include <stdbool.h> | 33 | #include <stdbool.h> |
34 | #include "file.h" | 34 | #include "file.h" |
35 | 35 | ||
36 | #if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) | 36 | #if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) || defined(__PCTOOL__) |
37 | # define dirent_uncached sim_dirent | 37 | # define dirent_uncached sim_dirent |
38 | # define DIR_UNCACHED SIM_DIR | 38 | # define DIR_UNCACHED SIM_DIR |
39 | # define opendir_uncached sim_opendir | 39 | # define opendir_uncached sim_opendir |
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); | |||
47 | extern int app_remove(const char* pathname); | 47 | extern int app_remove(const char* pathname); |
48 | extern int app_rename(const char* path, const char* newname); | 48 | extern 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) |