summaryrefslogtreecommitdiff
path: root/firmware/include/file.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-08-27 12:48:29 +0000
committerThomas Martitz <kugel@rockbox.org>2010-08-27 12:48:29 +0000
commitb16afb4356cb0bd2c7aafca1a9846d552ee12516 (patch)
tree5c8431c5a30e5cbdc11f347024fd612238e98ae8 /firmware/include/file.h
parent2c2e261648d5ae1befe5c4f269a655cc06b6e1e9 (diff)
downloadrockbox-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/file.h')
-rw-r--r--firmware/include/file.h4
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);
66extern ssize_t read(int fd, void *buf, size_t count); 66extern ssize_t read(int fd, void *buf, size_t count);
67extern off_t lseek(int fildes, off_t offset, int whence); 67extern off_t lseek(int fildes, off_t offset, int whence);
68extern int file_creat(const char *pathname); 68extern 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 */
71static inline int creat(const char *pathname, mode_t mode) 71static 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