From: Vladimir Serbinenko Date: Mon, 16 Dec 2013 13:41:12 +0000 (+0100) Subject: * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling X-Git-Tag: grub-2.02-beta1~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f009f07c9588035089a28bb9234bf0906e9e446c;p=thirdparty%2Fgrub.git * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling with mingw. --- diff --git a/ChangeLog b/ChangeLog index 67adb780a..a973b586e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-12-16 Vladimir Serbinenko + + * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling + with mingw. + 2013-12-16 Vladimir Serbinenko * include/grub/efi/api.h: Don't use call wrappers when compiled with diff --git a/include/grub/x86_64/types.h b/include/grub/x86_64/types.h index d53138ea3..fec910952 100644 --- a/include/grub/x86_64/types.h +++ b/include/grub/x86_64/types.h @@ -23,7 +23,11 @@ #define GRUB_TARGET_SIZEOF_VOID_P 8 /* The size of long. */ +#ifdef __MINGW32__ +#define GRUB_TARGET_SIZEOF_LONG 4 +#else #define GRUB_TARGET_SIZEOF_LONG 8 +#endif /* x86_64 is little-endian. */ #undef GRUB_TARGET_WORDS_BIGENDIAN