MinGW: 64-bit file offsets2gb
commita74d29422bcccf39f3d6a88909c737fd8bbf6ce4
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 4 Mar 2009 18:15:02 +0000 (4 19:15 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 6 Mar 2009 09:44:03 +0000 (6 10:44 +0100)
tree62494d88285c671da9fb562eb3ebfd7f9a1e9861
parentf14fd4025b4e793efd43fe87c9943acbcc05abf5
MinGW: 64-bit file offsets

The type 'off_t' should be used everywhere so that the bit-depth of that
type can be adjusted in the standard C library, and you just need to
recompile your program to benefit from the extended precision.

Only that it was not done that way in the MS runtime library.

This patch reroutes off_t to off64_t and provides the other necessary
changes so that finally, clones larger than 2 gigabyte work on Windows
(provided you are on a file system that allows files larger than 2gb).

Initial patch by Sickboy <sb@dev-heaven.net>.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.c
compat/mingw.h