Here the cmake defines ARM7 for the GBA cmake:
|
set(GBA_COMMON_FLAGS "-ffunction-sections -fdata-sections -D__GBA__ -DARM7") |
However, libfat checks for ARM7 to define
NDS in its header, which then causes issues when its tries to include ds-specific files here:
https://github.com/devkitPro/libfat/blob/154f7829d43421754085877d533d66743d42619a/include/fat.h#L43