summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-07-08 15:51:58 -0400
committerGitHub <noreply@github.com>2020-07-08 15:51:58 -0400
commitebb6c4ee661758874972956a94eb06d38eaa18a8 (patch)
treebccf414f4a854c2fd88290cbe5c221f56ba34f17 /include/config.h
parentc0bc7e8f7b94ebab1e39b761aa194630e4c7bf6b (diff)
parent9ff261ac2a249a669a42381509ef288287535b4f (diff)
Merge branch 'master' into doc-overworld
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