mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
fix 32 bit compilation on MinGW-w64
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.
This commit is contained in:
1 parent
c9e839e2ca
commit
94cee4a4c2
2 files changed
+8
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user