summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-07-08 15:45:31 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-07-08 15:45:31 -0400
commit431c60c92c59ba0c2d5a658e0c490f46162bb5d2 (patch)
tree7f03009ed9475a0f8e7aac6ed6ca2ab89a527577 /include/config.h
parent8b462f3f6c30de55767808136861e892fc3f0356 (diff)
parent8b80b417e2172a44098a22473717da20585bd15d (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into doc-confetti
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 318ed39d8..4f97a12a3 100644
--- a/include/config.h
+++ b/include/config.h
@@ -26,4 +26,12 @@
#define UNITS_METRIC
#endif
+// Various undefined behavior bugs may or may not prevent compilation with
+// newer compilers. So always fix them when using a modern compiler.
+#if MODERN
+#ifndef UBFIX
+#define UBFIX
+#endif
+#endif
+
#endif // GUARD_CONFIG_H