diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-08-27 12:48:29 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-08-27 12:48:29 +0000 |
commit | b16afb4356cb0bd2c7aafca1a9846d552ee12516 (patch) | |
tree | 5c8431c5a30e5cbdc11f347024fd612238e98ae8 /firmware/include | |
parent | 2c2e261648d5ae1befe5c4f269a655cc06b6e1e9 (diff) | |
download | rockbox-b16afb4356cb0bd2c7aafca1a9846d552ee12516.tar.gz rockbox-b16afb4356cb0bd2c7aafca1a9846d552ee12516.zip |
Fix checkwps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27905 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/file.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/include/file.h b/firmware/include/file.h index 7799f3d625..8a084d6f39 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h | |||
@@ -66,14 +66,14 @@ extern int fsync(int fd); | |||
66 | extern ssize_t read(int fd, void *buf, size_t count); | 66 | extern ssize_t read(int fd, void *buf, size_t count); |
67 | extern off_t lseek(int fildes, off_t offset, int whence); | 67 | extern off_t lseek(int fildes, off_t offset, int whence); |
68 | extern int file_creat(const char *pathname); | 68 | extern int file_creat(const char *pathname); |
69 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | 69 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(__PCTOOL__) |
70 | /* posix compatibility function */ | 70 | /* posix compatibility function */ |
71 | static inline int creat(const char *pathname, mode_t mode) | 71 | static inline int creat(const char *pathname, mode_t mode) |
72 | { | 72 | { |
73 | (void)mode; | 73 | (void)mode; |
74 | return file_creat(pathname); | 74 | return file_creat(pathname); |
75 | } | 75 | } |
76 | #if !defined(CODEC) && !defined(PLUGIN) && !defined(__PCTOOL__) | 76 | #if !defined(CODEC) && !defined(PLUGIN) |
77 | #define open(x, y, ...) file_open(x,y) | 77 | #define open(x, y, ...) file_open(x,y) |
78 | #endif | 78 | #endif |
79 | #endif | 79 | #endif |