* include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling

with mingw.
This commit is contained in:
Vladimir Serbinenko 2013-12-16 14:41:12 +01:00
parent 9fdec226ff
commit f009f07c95
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
with mingw.
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/efi/api.h: Don't use call wrappers when compiled with

View file

@ -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