summaryrefslogtreecommitdiff
path: root/firmware/include/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/file.h')
-rw-r--r--firmware/include/file.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/firmware/include/file.h b/firmware/include/file.h
index 1a43c6ad1d..f66cc6c60e 100644
--- a/firmware/include/file.h
+++ b/firmware/include/file.h
@@ -25,9 +25,6 @@
25#undef MAX_PATH /* this avoids problems when building simulator */ 25#undef MAX_PATH /* this avoids problems when building simulator */
26#define MAX_PATH 260 26#define MAX_PATH 260
27 27
28#ifdef __PCTOOL__
29#include <fcntl.h>
30#else
31#include <sys/types.h> 28#include <sys/types.h>
32#include "_ansi.h" 29#include "_ansi.h"
33 30
@@ -88,7 +85,7 @@ static inline int creat(const char *pathname, mode_t mode)
88 (void)mode; 85 (void)mode;
89 return file_creat(pathname); 86 return file_creat(pathname);
90} 87}
91#if !defined(CODEC) && !defined(PLUGIN) 88#if !defined(CODEC) && !defined(PLUGIN) && !defined(__PCTOOL__)
92#define open(x, y, ...) file_open(x,y) 89#define open(x, y, ...) file_open(x,y)
93#endif 90#endif
94#endif 91#endif
@@ -100,4 +97,3 @@ extern off_t filesize(int fd);
100extern int release_files(int volume); 97extern int release_files(int volume);
101int fdprintf (int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); 98int fdprintf (int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3);
102#endif 99#endif
103#endif