1
0
Fork 0
forked from len0rd/rockbox

Fix checkwps.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27905 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-08-27 12:48:29 +00:00
parent 2c2e261648
commit b16afb4356

View file

@ -66,14 +66,14 @@ extern int fsync(int fd);
extern ssize_t read(int fd, void *buf, size_t count); extern ssize_t read(int fd, void *buf, size_t count);
extern off_t lseek(int fildes, off_t offset, int whence); extern off_t lseek(int fildes, off_t offset, int whence);
extern int file_creat(const char *pathname); extern int file_creat(const char *pathname);
#if (CONFIG_PLATFORM & PLATFORM_NATIVE) #if (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(__PCTOOL__)
/* posix compatibility function */ /* posix compatibility function */
static inline int creat(const char *pathname, mode_t mode) static inline int creat(const char *pathname, mode_t mode)
{ {
(void)mode; (void)mode;
return file_creat(pathname); return file_creat(pathname);
} }
#if !defined(CODEC) && !defined(PLUGIN) && !defined(__PCTOOL__) #if !defined(CODEC) && !defined(PLUGIN)
#define open(x, y, ...) file_open(x,y) #define open(x, y, ...) file_open(x,y)
#endif #endif
#endif #endif