[m-rev.] for review: always use 64-bit offsets with fseek() and ftell()

Zoltan Somogyi zoltan.somogyi at runbox.com
Tue Oct 8 20:04:22 AEDT 2019



On Mon, 7 Oct 2019 16:47:14 +1100 (AEDT), Julien Fischer <jfischer at opturion.com> wrote:
> +// MR_fseek and MR_ftell expand to the name of the versions of fseek()
> +// and ftell() that use 64-bit offsets.
> +//
> +#if defined(MR_WIN32) && !defined(MR_CYGWIN)
> +    #if defined(MR_MINGW)
> +       #define MR_fseek fseeko64
> +       #define MR_ftell ftello64
> +    #else
> +       #define MR_fseek _fseeki64
> +       #define MR_ftell _ftelli64
> +    #endif
> +#else
> +   #define MR_fseek fseek
> +   #define MR_ftell ftell
> +#endif

I don't know enough about Windows to check this. The rest is fine.

Zoltan.


More information about the reviews mailing list