summaryrefslogtreecommitdiffstats
path: root/byterun/io.h
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2005-02-02 15:52:11 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2005-02-02 15:52:11 +0000
commit46c4d1845c8a70f1361cad33e3da250d4d287135 (patch)
tree1b42f083636b4c6bc7272352ebdfc1ce8c8e8d5c /byterun/io.h
parent7a4aa339bbce0abd1819fd50663b849234cb8e6a (diff)
Utilisation de _lseeki64 au lieu de lseek (PR#3324)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6773 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/io.h')
-rw-r--r--byterun/io.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/byterun/io.h b/byterun/io.h
index 643af746b..3644763a5 100644
--- a/byterun/io.h
+++ b/byterun/io.h
@@ -25,7 +25,10 @@
#define IO_BUFFER_SIZE 4096
#endif
-#ifdef HAS_OFF_T
+#if defined(_WIN32)
+typedef __int64 file_offset;
+#define lseek(fd,d,m) _lseeki64(fd,d,m)
+#elif defined(HAS_OFF_T)
#include <sys/types.h>
typedef off_t file_offset;
#else