+2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
+ (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
+
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
#endif
#ifndef ASM_FILE
-#ifdef APPLE_CC
+#ifdef __APPLE__
#define GRUB_MOD_SECTION(x) "_" #x ", _" #x ""
#else
#define GRUB_MOD_SECTION(x) "." #x
#endif
#else
-#ifdef APPLE_CC
+#ifdef __APPLE__
#define GRUB_MOD_SECTION(x) _ ## x , _ ##x
#else
#define GRUB_MOD_SECTION(x) . ## x
static const char grub_module_depend_##name[] \
__attribute__((section(GRUB_MOD_SECTION(moddeps)), __used__)) = #name
#else
-#define GRUB_MOD_LICENSE(license) \
- .section GRUB_MOD_SECTION(module_license), "a"; \
- .ascii "LICENSE="; \
- .ascii license; \
+#ifdef __APPLE__
+.macro GRUB_MOD_LICENSE
+ .section GRUB_MOD_SECTION(module_license)
+ .ascii "LICENSE="
+ .ascii $0
+ .byte 0
+.endm
+#else
+.macro GRUB_MOD_LICENSE license
+ .section GRUB_MOD_SECTION(module_license), "a"
+ .ascii "LICENSE="
+ .ascii "\license"
.byte 0
+.endm
+#endif
#endif
/* Under GPL license obligations you have to distribute your module