]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 16 Dec 2013 13:41:12 +0000 (14:41 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 16 Dec 2013 13:41:12 +0000 (14:41 +0100)
with mingw.

ChangeLog
include/grub/x86_64/types.h

index 67adb780ae7885df28db5b7ec6cb04e20afbf1a6..a973b586edda6cbed05c63ef486de0b12585222f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index d53138ea3e8f85adcf7ae8c9bad52fc14f627c20..fec910952c4f9148faea21943f467e6e50a38627 100644 (file)
 #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