|
|
0dc71c |
From bb3e1a1e8448f3ea9489b5ebfcec799196bc862f Mon Sep 17 00:00:00 2001
|
|
|
0dc71c |
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
0dc71c |
Date: Sat, 18 Jan 2014 20:04:11 +0400
|
|
|
0dc71c |
Subject: [PATCH 025/143] Use _W64 to detect MinGW W64-32 instead of
|
|
|
0dc71c |
_FILE_OFFSET_BITS
|
|
|
0dc71c |
|
|
|
0dc71c |
In 94cee4a4c201bb506377b2c26e072eee8cb19d6f I overlooked that config.h
|
|
|
0dc71c |
unconditionally sets _FILE_OFFSET_BITS, so it cannot be used to detect
|
|
|
0dc71c |
MinGW W64 environment. It looks like Emacs folks already found
|
|
|
0dc71c |
solution; instead of _FILE_OFFSET_BITS use _W64 as suggested in
|
|
|
0dc71c |
http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00723.html
|
|
|
0dc71c |
---
|
|
|
0dc71c |
ChangeLog | 5 +++++
|
|
|
0dc71c |
include/grub/osdep/hostfile_windows.h | 4 ++--
|
|
|
0dc71c |
2 files changed, 7 insertions(+), 2 deletions(-)
|
|
|
0dc71c |
|
|
|
0dc71c |
diff --git a/ChangeLog b/ChangeLog
|
|
|
0dc71c |
index fcbf220..5aac7c1 100644
|
|
|
0dc71c |
--- a/ChangeLog
|
|
|
0dc71c |
+++ b/ChangeLog
|
|
|
0dc71c |
@@ -1,3 +1,8 @@
|
|
|
0dc71c |
+2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
0dc71c |
+
|
|
|
0dc71c |
+ * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
|
|
|
0dc71c |
+ FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
|
|
|
0dc71c |
+
|
|
|
0dc71c |
2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
0dc71c |
|
|
|
0dc71c |
* grub-core/term/terminfo.c: Recognize keys F1-F12.
|
|
|
0dc71c |
diff --git a/include/grub/osdep/hostfile_windows.h b/include/grub/osdep/hostfile_windows.h
|
|
|
0dc71c |
index 79efcfa..bf6451b 100644
|
|
|
0dc71c |
--- a/include/grub/osdep/hostfile_windows.h
|
|
|
0dc71c |
+++ b/include/grub/osdep/hostfile_windows.h
|
|
|
0dc71c |
@@ -69,8 +69,8 @@ enum grub_util_fd_open_flags_t
|
|
|
0dc71c |
|
|
|
0dc71c |
#if defined (__MINGW32__) && !defined (__MINGW64__)
|
|
|
0dc71c |
|
|
|
0dc71c |
-/* 32 bit on MinGW-64 already redefines them if _FILE_OFFSET_BITS=64 */
|
|
|
0dc71c |
-#if !defined(_FILE_OFFSET_BITS)
|
|
|
0dc71c |
+/* 32 bit on Mingw-w64 already redefines them if _FILE_OFFSET_BITS=64 */
|
|
|
0dc71c |
+#ifndef _W64
|
|
|
0dc71c |
#define fseeko fseeko64
|
|
|
0dc71c |
#define ftello ftello64
|
|
|
0dc71c |
#endif
|
|
|
0dc71c |
--
|
|
|
0dc71c |
1.9.3
|
|
|
0dc71c |
|