With Apple assembly in .macro environvemnt you have to use $$ instead

of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
	to $$x on Apple and to $x on everything else.
This commit is contained in:
Vladimir Serbinenko 2013-11-24 05:55:47 +01:00
parent b700a427d2
commit 09bc0a577d
4 changed files with 22 additions and 14 deletions

View file

@ -27,6 +27,12 @@
/* Add an underscore to a C symbol in assembler code if needed. */
#ifndef GRUB_UTIL
#ifdef __APPLE__
#define MACRO_DOLLAR(x) $$ ## x
#else
#define MACRO_DOLLAR(x) $ ## x
#endif
#if HAVE_ASM_USCORE
#ifdef ASM_FILE
# define EXT_C(sym) _ ## sym