Re: [AD] bugfix for files > 2GB under unix |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, 2006-05-21 at 16:54 -0700, Chris wrote:
> On Sunday 21 May 2006 13:26, Peter Hull wrote:
> > OSX doesn't (AFAICS) have stat64, but the file size field of struct
> > stat is defined as off_t, which is 64-bit.
>
> Not on 32-bit systems by default. According to my man pages:
>
> The library routine lseek() uses the type off_t. This is a 32-bit signed
> type on 32-bit architectures, unless one compiles with
>
> #define _FILE_OFFSET_BITS 64
>
> in which case it is a 64-bit signed type.
>
I changed it to use that #define instead of stat64.
--
Elias Pschernig