grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] fix 32 bit compilation on MinGW-w64


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH] fix 32 bit compilation on MinGW-w64
Date: Tue, 07 Jan 2014 14:32:57 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10

Go ahead
On 29.12.2013 11:10, Andrey Borzenkov wrote:
> Use _FILE_OFFSET_BITS macro to distinguish between native MinGW and
> 32 bit under MinGW-64. The latter does not require fseeko/ftello
> redefinition which it already does in case of _FILE_OFFSET_BITS=64.
> 
> ---
>  include/grub/osdep/hostfile_windows.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/grub/osdep/hostfile_windows.h 
> b/include/grub/osdep/hostfile_windows.h
> index 36615b2..79efcfa 100644
> --- a/include/grub/osdep/hostfile_windows.h
> +++ b/include/grub/osdep/hostfile_windows.h
> @@ -69,8 +69,11 @@ enum grub_util_fd_open_flags_t
>  
>  #if defined (__MINGW32__) && !defined (__MINGW64__)
>  
> +/* 32 bit on MinGW-64 already redefines them if _FILE_OFFSET_BITS=64 */
> +#if !defined(_FILE_OFFSET_BITS)
>  #define fseeko fseeko64
>  #define ftello ftello64
> +#endif
>  
>  #endif
>  
> 


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]