From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W0Xb8-0002UU-Si for mharc-grub-devel@gnu.org; Tue, 07 Jan 2014 09:25:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Xax-0002Oh-Qn for grub-devel@gnu.org; Tue, 07 Jan 2014 09:25:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0Xap-0001w4-Cz for grub-devel@gnu.org; Tue, 07 Jan 2014 09:25:27 -0500 Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:60438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Xap-0001vx-4Y for grub-devel@gnu.org; Tue, 07 Jan 2014 09:25:19 -0500 Received: by mail-ea0-f182.google.com with SMTP id a15so243493eae.27 for ; Tue, 07 Jan 2014 06:25:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=P7OjQUtFchE833zhpAYV57/M5+G5j1AXEObK1rE6a9A=; b=z8K7UOxInb68XcUfUrwTwFCuddKNrU08L7yvKAMW6Zn1FEvBkdHGEACXaWHOg/uwBF EjG4J5wmipTsB6gVzi81I2Rlc3c7jS5XeA2c4pIMfrxgOCJ3quHPhQHTqvdB4Tx4DytF b0cYRYWKrOHEmdR0AMScWtTAabuIDlfGkQkDND5hA5M6IcFHFFgj5dfnHM33z4M+7wTN BEQ6UCqhv3FAoPXVGOcVZ6Tp9L95WrGddKbt8rGkGY4tn3VDTu/Qv+nLi56qKyb+c8tf MeCUn39jZsEKGiPVjV2KRM2oMTGtFnoJVw7Z1zYm0KztW+9I487L2Fcfz3aB/veEfMmg P18A== X-Received: by 10.14.87.2 with SMTP id x2mr21374625eee.79.1389104718296; Tue, 07 Jan 2014 06:25:18 -0800 (PST) Received: from [192.168.42.236] (161-225.197-178.cust.bluewin.ch. [178.197.225.161]) by mx.google.com with ESMTPSA id e3sm180478212eeg.11.2014.01.07.06.25.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 06:25:17 -0800 (PST) Message-ID: <52CC0209.8090500@gmail.com> Date: Tue, 07 Jan 2014 14:32:57 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [PATCH] fix 32 bit compilation on MinGW-w64 References: <1388311800-27081-1-git-send-email-arvidjaar@gmail.com> In-Reply-To: <1388311800-27081-1-git-send-email-arvidjaar@gmail.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jRuslxv1N78MAF5MjRWDSKxcG4Ip469hp" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::236 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 14:25:36 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jRuslxv1N78MAF5MjRWDSKxcG4Ip469hp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3D64. >=20 > --- > include/grub/osdep/hostfile_windows.h | 3 +++ > 1 file changed, 3 insertions(+) >=20 > 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 > =20 > #if defined (__MINGW32__) && !defined (__MINGW64__) > =20 > +/* 32 bit on MinGW-64 already redefines them if _FILE_OFFSET_BITS=3D64= */ > +#if !defined(_FILE_OFFSET_BITS) > #define fseeko fseeko64 > #define ftello ftello64 > +#endif > =20 > #endif > =20 >=20 --jRuslxv1N78MAF5MjRWDSKxcG4Ip469hp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlLMAg8ACgkQmBXlbbo5nOuMcQD+OCSymRKxgnhlnYG1yY6j3vLL tApm0K++LDjt5AgXfCsA/jm4kQqCgnuSG9xYxLNVmF9Dj9c4uSIt0L34B3F5VqKL =g4Vr -----END PGP SIGNATURE----- --jRuslxv1N78MAF5MjRWDSKxcG4Ip469hp--