summaryrefslogtreecommitdiff
path: root/include/gba/defines.h
diff options
context:
space:
mode:
authorSatoMew <SatoMew@users.noreply.github.com>2019-10-08 22:46:32 +0100
committerSatoMew <SatoMew@users.noreply.github.com>2019-10-08 22:46:32 +0100
commit2c254082de042dde46cee9d2da2d9bb1bc340905 (patch)
treeaf99bcac2c6fece9523b12dbabe4128ec26f6fc9 /include/gba/defines.h
parent78558b07b0983b6b8b06085933fdf66b801658e9 (diff)
parent2a7205dec677c98d087cb8ba191370de464c8bf0 (diff)
Merge branch 'master' of https://github.com/pret/pokefirered
Diffstat (limited to 'include/gba/defines.h')
-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)))