[libbluray-devel] commit: mingw: use ftello64() and fseeko64() (hpi1 )
John Stebbins
stebbins at jetheaddev.com
Sat Aug 21 01:03:47 CEST 2010
Fyi, I use these defines to deal with mingw large file issues on handbrake.
On 08/20/2010 03:58 PM, git at videolan.org wrote:
> libbluray | branch: master | hpi1<hpi1 at anonymous.org> | Sat Aug 21 01:57:21 2010 +0300| [16398e93a53933857577abc90b19b62092a5e9bd] | committer: hpi1
>
> mingw: use ftello64() and fseeko64()
>
>
>> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=16398e93a53933857577abc90b19b62092a5e9bd
>>
> ---
>
> src/file/file_posix.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/src/file/file_posix.c b/src/file/file_posix.c
> index 70d99e7..451f369 100644
> --- a/src/file/file_posix.c
> +++ b/src/file/file_posix.c
> @@ -41,12 +41,20 @@ static void file_close_linux(BD_FILE_H *file)
>
> static int64_t file_seek_linux(BD_FILE_H *file, int64_t offset, int32_t origin)
> {
> +#if defined(_WIN32)
> + return fseeko64((FILE *)file->internal, offset, origin);
> +#else
> return fseeko((FILE *)file->internal, offset, origin);
> +#endif
> }
>
> static int64_t file_tell_linux(BD_FILE_H *file)
> {
> +#if defined(_WIN32)
> + return ftello64((FILE *)file->internal);
> +#else
> return ftello((FILE *)file->internal);
> +#endif
> }
>
> static int file_eof_linux(BD_FILE_H *file)
>
> _______________________________________________
> libbluray-devel mailing list
> libbluray-devel at videolan.org
> http://mailman.videolan.org/listinfo/libbluray-devel
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mingw-largefile
URL: <http://mailman.videolan.org/pipermail/libbluray-devel/attachments/20100820/6766d75f/attachment.txt>
More information about the libbluray-devel
mailing list