From 3e400b2ae60a2f21b1892bf29758f8913059f381 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 6 May 2010 21:49:09 +0000 Subject: Fix checkwps by using host system's file IO (thanks to r25843/r25844) and by including a work around for systems that try to get intN_t via sys/types.h (which should be wrong, but well). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25854 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/file.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'firmware/include/file.h') diff --git a/firmware/include/file.h b/firmware/include/file.h index 2d5c9b88ab..1a43c6ad1d 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h @@ -22,12 +22,15 @@ #ifndef _FILE_H_ #define _FILE_H_ -#include -#include "_ansi.h" - #undef MAX_PATH /* this avoids problems when building simulator */ #define MAX_PATH 260 +#ifdef __PCTOOL__ +#include +#else +#include +#include "_ansi.h" + #define MAX_OPEN_FILES 11 #ifndef SEEK_SET @@ -97,3 +100,4 @@ extern off_t filesize(int fd); extern int release_files(int volume); int fdprintf (int fd, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); #endif +#endif -- cgit v1.2.3