Include gba/defines.h in gba/types.h (#4364)

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 commit is contained in:
Martin Griffin 2024-04-07 12:08:35 +01:00 committed by GitHub
parent c740c4ba19
commit 41ddd911b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,7 @@
#define GUARD_GBA_TYPES_H
#include <stdint.h>
#include "gba/defines.h"
typedef uint8_t u8;
typedef uint16_t u16;