diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2020-04-04 12:58:08 -0400 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2020-04-04 12:58:08 -0400 |
commit | cc3419eff7c7139f4b4a92a31bbb6255e3dba1dd (patch) | |
tree | 73a4d8c2e5c34feb46ca9ada6b1668b3d95cd3ac /include/global.h | |
parent | c47eca8a182a2a202cd65e2af93e9ef322d8674c (diff) |
Get pokefirered_modern to build
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |