From d9d90b5a9fdb6d3dc0645b10444e02efab08d82e Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Fri, 6 Sep 2019 12:53:35 -0400 Subject: Suppress CLion complaints about mach-o sections --- include/gba/defines.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/gba/defines.h') diff --git a/include/gba/defines.h b/include/gba/defines.h index 3932a8542..c0eec12b1 100644 --- a/include/gba/defines.h +++ b/include/gba/defines.h @@ -6,8 +6,13 @@ #define TRUE 1 #define FALSE 0 +#if defined(__APPLE__) +#define IWRAM_DATA __attribute__((section("__DATA,iwram_data"))) +#define EWRAM_DATA __attribute__((section("__DATA,ewram_data"))) +#else #define IWRAM_DATA __attribute__((section("iwram_data"))) #define EWRAM_DATA __attribute__((section("ewram_data"))) +#endif #define ALIGNED(n) __attribute__((aligned(n))) -- cgit v1.2.3