Skip to contentSkip to conversation

Define asm symbol macros when compiling on Apple's CC

PATCH In review Vladimir 'phcoder' Serbinenko 1 participant 1 message May 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 16/18 Define asm symbol macros when compiling on Apple's CC

Signature · 2 lines
Regards
Vladimir 'phcoder' Serbinenko
include/grub/symbol.h +4 -1
index ef19a73..68d9f00 100644
@@ -28,7 +28,10 @@
 # define EXT_C(sym)	sym
 #endif
 
-#if ! defined (__CYGWIN__) && ! defined (__MINGW32__)
+#if defined (APPLE_CC)
+#define FUNCTION(x)	.globl EXT_C(x) ; EXT_C(x):
+#define VARIABLE(x)	.globl EXT_C(x) ; EXT_C(x):
+#elif ! defined (__CYGWIN__) && ! defined (__MINGW32__)
 #define FUNCTION(x)	.globl EXT_C(x) ; .type EXT_C(x), "function" ; EXT_C(x):
 #define VARIABLE(x)	.globl EXT_C(x) ; .type EXT_C(x), "object" ; EXT_C(x):
 #else