summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-09-06 12:53:35 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-09-06 12:53:35 -0400
commitd9d90b5a9fdb6d3dc0645b10444e02efab08d82e (patch)
treec5fbd58e50211efe5da76b06977ea32d77694fff
parent6c0fd9884cfa7eca6c2b2f0394efea1140d0feb1 (diff)
Suppress CLion complaints about mach-o sections
-rw-r--r--include/gba/defines.h5
1 files changed, 5 insertions, 0 deletions
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)))