From cc3419eff7c7139f4b4a92a31bbb6255e3dba1dd Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sat, 4 Apr 2020 12:58:08 -0400 Subject: Get pokefirered_modern to build --- include/global.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/global.h') diff --git a/include/global.h b/include/global.h index aa60be994..4a636957b 100644 --- a/include/global.h +++ b/include/global.h @@ -50,6 +50,10 @@ #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) >= (b) ? (a) : (b)) +#if MODERN +#define abs(x) (((x) < 0) ? -(x) : (x)) +#endif + // There are many quirks in the source code which have overarching behavioral differences from // a number of other files. For example, diploma.c seems to declare rodata before each use while // other files declare out of order and must be at the beginning. There are also a number of -- cgit v1.2.3