Permalink
Browse files

setup.h: WinCE build adjustment

  • Loading branch information...
1 parent 05f6f24 commit 5a8649863c60e248e224d648dfb1cdbd88b05089 @masali-hp masali-hp committed with yangtse Jun 18, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 lib/setup.h
View
@@ -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

0 comments on commit 5a86498

Please sign in to comment.