Use ftello/fseeko instead of ftell/fseek
commitac08fb9eb09123e22d33f513a7ed11e59f6df96d
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Wed, 9 May 2012 14:21:15 +0000 (9 10:21 -0400)
committerYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Thu, 10 May 2012 08:29:24 +0000 (10 17:29 +0900)
tree1a0f3751d9276fb68700c52679fc93f6e2151599
parent108cb026a6293294be0a79d23df0c8572ea1b606
Use ftello/fseeko instead of ftell/fseek

On 32-bit systems, fseek returns a long, which is 32-bits, and
fseek takes its offset argument as a long, as well. In order
to return and use 64-bit offsets, use ftello and fseeko, along
which defining _FILE_OFFSET_BITS 64, which is already in osdep.h.
internal.h