Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include gba/defines.h in gba/types.h #1988

Closed
wants to merge 1 commit into from
Closed

Conversation

mrgriffin
Copy link
Collaborator

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 before gba/defines.h, it ends up declaring a
variable named PACKED rather than specifying that BgCnt should be
packed.
@mrgriffin
Copy link
Collaborator Author

Sorry, you don't actually have PACKED on that struct here. mb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant