diff options
author | Mark Salisbury <mark.salisbury@hp.com> | 2012-06-18 18:44:43 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-18 18:52:28 +0200 |
commit | 5a8649863c60e248e224d648dfb1cdbd88b05089 (patch) | |
tree | f297b48bb1eda183a801ec22ebce7eaef0e5a082 | |
parent | 05f6f2497a9cd238e3314ab60ebbd8d816780a73 (diff) |
setup.h: WinCE build adjustment
-rw-r--r-- | lib/setup.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/setup.h b/lib/setup.h index a219080be..4b4876131 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -349,11 +349,13 @@ # include <io.h> # include <sys/types.h> # include <sys/stat.h> -# undef lseek -# define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) -# define fstat(fdes,stp) _fstat(fdes, stp) -# define stat(fname,stp) _stat(fname, stp) -# define struct_stat struct _stat +# ifndef _WIN32_WCE +# undef lseek +# define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) +# define fstat(fdes,stp) _fstat(fdes, stp) +# define stat(fname,stp) _stat(fname, stp) +# define struct_stat struct _stat +# endif # define LSEEK_ERROR (long)-1 #endif |