Skip to content

Issue with ARM7 define in GBA cmake and libfat #348

@Lorenzooone

Description

@Lorenzooone

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions