Skip to content

Commit

Permalink
Include gba/defines.h in gba/types.h (rh-hideout#4364)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mrgriffin authored and Pawkkie committed May 16, 2024
1 parent 14f6388 commit 36c89e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/gba/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define GUARD_GBA_TYPES_H

#include <stdint.h>
#include "gba/defines.h"

typedef uint8_t u8;
typedef uint16_t u16;
Expand Down

0 comments on commit 36c89e8

Please sign in to comment.