If gba/types.h is included before gba/defines.h, it ends up declaring a variable named PACKED rather than specifying that BgCnt should be packed.
This occurs in src/mini_printf.c, and also apparently in a feature branch which is how this situation was detected (a multiple definition error at link time).
If
gba/types.h
is included beforegba/defines.h
, it ends up declaring a variable namedPACKED
rather than specifying thatBgCnt
should be packed.This occurs in
src/mini_printf.c
, and also apparently in a feature branch which is how this situation was detected (a multiple definition error at link time).