summaryrefslogtreecommitdiffstats
path: root/firmware
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
parent2c2e261648d5ae1befe5c4f269a655cc06b6e1e9 (diff)
downloadrockbox-b16afb4356cb0bd2c7aafca1a9846d552ee12516.tar.gz
rockbox-b16afb4356cb0bd2c7aafca1a9846d552ee12516.tar.bz2
rockbox-b16afb4356cb0bd2c7aafca1a9846d552ee12516.zip
Fix checkwps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27905 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-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);
extern ssize_t read(int fd, void *buf, size_t count);
extern off_t lseek(int fildes, off_t offset, int whence);
extern int file_creat(const char *pathname);
-#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
+#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(__PCTOOL__)
/* posix compatibility function */
static inline int creat(const char *pathname, mode_t mode)
{
(void)mode;
return file_creat(pathname);
}
-#if !defined(CODEC) && !defined(PLUGIN) && !defined(__PCTOOL__)
+#if !defined(CODEC) && !defined(PLUGIN)
#define open(x, y, ...) file_open(x,y)
#endif
#endif