diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-07-08 15:42:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 15:42:08 -0400 |
commit | 550875757b6bbe3cde41c928c6bbef863b5492bf (patch) | |
tree | b8915678ca603a812ea21fb08727f4729d803ccc /include | |
parent | b7532903d7969cc80174ca2538351df2f2aff6d7 (diff) | |
parent | 3264cf697f5fe996c2a79c6c34181c186fe2f96e (diff) |
Merge pull request #1087 from ipatix/fix_aggressive_loop_optimizations
fix aggressive loop optimizations
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 8 | ||||
-rw-r--r-- | include/global.tv.h | 7 |
2 files changed, 15 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 diff --git a/include/global.tv.h b/include/global.tv.h index 34791d43c..ba1c3c37e 100644 --- a/include/global.tv.h +++ b/include/global.tv.h @@ -18,6 +18,13 @@ typedef union // size = 0x24 /*0x23*/ u8 trainerIdHi; } common; + // Common init (used for initialization loop) + struct { + /*0x00*/ u8 kind; + /*0x01*/ bool8 active; + /*0x02*/ u8 pad02[34]; + } commonInit; + // Local shows // TVSHOW_FAN_CLUB_LETTER struct { |