Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tool_cb_see.c: WinCE build adjustment

  • Loading branch information...
commit 599a2c1f1a0630cf1ba60f0cbf0323da68d42cf5 1 parent 5a86498
yangtse authored June 18, 2012

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  src/tool_cb_see.c
8  src/tool_cb_see.c
@@ -108,6 +108,14 @@ int tool_seek_cb(void *userdata, curl_off_t offset, int whence)
108 108
 #  endif
109 109
 #endif
110 110
 
  111
+#ifdef _WIN32_WCE
  112
+/* 64-bit lseek-like function unavailable */
  113
+#  undef _lseeki64
  114
+#  define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
  115
+#  undef _get_osfhandle
  116
+#  define _get_osfhandle(fd) (fd)
  117
+#endif
  118
+
111 119
 /*
112 120
  * Truncate a file handle at a 64-bit position 'where'.
113 121
  */

0 notes on commit 599a2c1

Please sign in to comment.
Something went wrong with that request. Please try again.