Skip to content

Commit

Permalink
tool_cb_see.c: WinCE build adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtse committed Jun 18, 2012
1 parent 5a86498 commit 599a2c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tool_cb_see.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ int tool_seek_cb(void *userdata, curl_off_t offset, int whence)
# endif
#endif

#ifdef _WIN32_WCE
/* 64-bit lseek-like function unavailable */
# undef _lseeki64
# define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
# undef _get_osfhandle
# define _get_osfhandle(fd) (fd)
#endif

/*
* Truncate a file handle at a 64-bit position 'where'.
*/
Expand Down

0 comments on commit 599a2c1

Please sign in to comment.