]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
authorColin Watson <cjwatson@ubuntu.com>
Tue, 28 Sep 2010 16:38:34 +0000 (17:38 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 28 Sep 2010 16:38:34 +0000 (17:38 +0100)
i386 and x86-64 definedness tests.

ChangeLog
grub-core/loader/multiboot_mbi2.c

index e428dcd5323048ce242bc41596f80871baf3c610..f33ddb6afaffe026a7a4d5a999f2d20970a4a737 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-28  Colin Watson  <cjwatson@ubuntu.com>
+
+       * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
+       i386 and x86-64 definedness tests.
+
 2010-09-27  Yves Blusseau  <blusseau@zetam.org>
 
        Fix generation of kernel_syms.lst
index a20c82cad2722dbdab0ef34a756a7b478f5c74e1..75eaec33d73f6aa8858c772140a224d50ba894c8 100644 (file)
@@ -705,7 +705,7 @@ grub_multiboot_make_mbi (grub_uint32_t *target)
       }
   }
 
-#if defined (GRUB_MACHINE_EFI) && __x86_64__
+#if defined (GRUB_MACHINE_EFI) && defined (__x86_64__)
   {
     struct multiboot_tag_efi64 *tag = (struct multiboot_tag_efi64 *) ptrorig;
     tag->type = MULTIBOOT_TAG_TYPE_EFI64;
@@ -715,7 +715,7 @@ grub_multiboot_make_mbi (grub_uint32_t *target)
   }
 #endif
 
-#if defined (GRUB_MACHINE_EFI) && __i386__
+#if defined (GRUB_MACHINE_EFI) && defined (__i386__)
   {
     struct multiboot_tag_efi64 *tag = (struct multiboot_tag_efi32 *) ptrorig;
     tag->type = MULTIBOOT_TAG_TYPE_EFI32;