* grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and

-DELF.
	* grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
	instead of ELF*.
This commit is contained in:
Vladimir Serbinenko 2013-11-10 13:13:41 +01:00
parent 28668d808e
commit 54da019fdb
3 changed files with 18 additions and 9 deletions

View file

@ -19,16 +19,18 @@
#define GRUB_TYPES_CPU_HEADER 1
#ifdef ELF32
#ifdef __i386__
# define SIZEOF_VOID_P 4
# define SIZEOF_LONG 4
# define GRUB_TARGET_SIZEOF_VOID_P 4
# define GRUB_TARGET_SIZEOF_LONG 4
# define EFI_FUNC(x) x
#else
#elif defined (__x86_64__)
# define SIZEOF_VOID_P 8
# define SIZEOF_LONG 8
# define GRUB_TARGET_SIZEOF_VOID_P 8
# define GRUB_TARGET_SIZEOF_LONG 8
# define EFI_FUNC(x) x ## _real
#else
#error "Unknown architecture"
#endif