summaryrefslogtreecommitdiff
path: root/include/gba/defines.h
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-07-20 12:11:46 -0400
committerGitHub <noreply@github.com>2019-07-20 12:11:46 -0400
commit4d5c1ca03b4e7db3c44c71afaa01b1549a282a19 (patch)
treeec2e9ec5f3e4a6d8523e80ab58e6c9c296fbc05c /include/gba/defines.h
parent3f762629e830c0cad66c4efeea5b918bdf4cce20 (diff)
parent6edacdee36d31b2df69559f28a33b8d9e958bf5e (diff)
Merge pull request #732 from PikalaxALT/modern_gcc
Modernize code for compatibility with later releases of GCC
Diffstat (limited to 'include/gba/defines.h')
-rw-r--r--include/gba/defines.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gba/defines.h b/include/gba/defines.h
index b68a2ad1e..9bd695aaa 100644
--- a/include/gba/defines.h
+++ b/include/gba/defines.h
@@ -6,9 +6,16 @@
#define TRUE 1
#define FALSE 0
+#define BSS_DATA __attribute__((section(".bss")))
#define IWRAM_DATA __attribute__((section("iwram_data")))
#define EWRAM_DATA __attribute__((section("ewram_data")))
+#if MODERN
+#define NOINLINE __attribute__((noinline))
+#else
+#define NOINLINE
+#endif
+
#define ALIGNED(n) __attribute__((aligned(n)))
#define SOUND_INFO_PTR (*(struct SoundInfo **)0x3007FF0)