2009-06-10 Pavel Roskin <proski@gnu.org>
+ * include/grub/multiboot2.h: Provide compatibility defines for
+ multiboot2.h.
+ * include/multiboot2.h: Include stdint.h only if needed, using
+ angle brackets.
+ * loader/i386/pc/multiboot2.c: Include multiboot2.h after
+ grub/multiboot2.h.
+ * loader/ieee1275/multiboot2.c: Likewise.
+ * loader/multiboot2.c: Likewise.
+ * loader/multiboot_loader.c: Likewise.
+
* configure.ac: Use -nostdlib when probing for the target. It
should not be required to have libc for the target.
#include <grub/err.h>
#include <grub/elf.h>
+#ifndef GRUB_UTIL
+typedef grub_uint32_t uint32_t;
+typedef grub_uint64_t uint64_t;
+#define __WORDSIZE (8 * GRUB_TARGET_SIZEOF_VOID_P)
+#endif
+
struct multiboot_tag_header;
grub_err_t
#ifndef ASM_FILE
-#include "stdint.h"
+#ifndef __WORDSIZE
+#include <stdint.h>
+#endif
/* XXX not portable? */
#if __WORDSIZE == 64
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <multiboot2.h>
#include <grub/multiboot2.h>
+#include <multiboot2.h>
#include <grub/elf.h>
#include <grub/err.h>
#include <grub/machine/loader.h>
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <multiboot2.h>
#include <grub/loader.h>
#include <grub/ieee1275/ieee1275.h>
#include <grub/multiboot2.h>
+#include <multiboot2.h>
#include <grub/err.h>
#include <grub/elf.h>
#include <grub/misc.h>
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <multiboot2.h>
#include <grub/loader.h>
#include <grub/machine/loader.h>
#include <grub/multiboot2.h>
+#include <multiboot2.h>
#include <grub/elfload.h>
#include <grub/file.h>
#include <grub/err.h>
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <multiboot2.h>
#include <grub/machine/machine.h>
#include <grub/multiboot.h>
#include <grub/multiboot2.h>
+#include <multiboot2.h>
#include <grub/elf.h>
#include <grub/file.h>
#include <grub/err.h>