Merge pull request #430 from orbea/pedantic
sgb.h: Silence -Wgnu-anonymous-struct and -Wnested-anon-type warnings
This commit is contained in:
commit
e922b3fc4a
@ -7,6 +7,7 @@
|
|||||||
typedef struct GB_sgb_s GB_sgb_t;
|
typedef struct GB_sgb_s GB_sgb_t;
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t tiles[0x100 * 8 * 4];
|
uint8_t tiles[0x100 * 8 * 4];
|
||||||
|
#ifdef GB_INTERNAL
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
uint16_t map[32 * 32];
|
uint16_t map[32 * 32];
|
||||||
@ -14,6 +15,9 @@ typedef struct {
|
|||||||
};
|
};
|
||||||
uint16_t raw_data[0x440];
|
uint16_t raw_data[0x440];
|
||||||
};
|
};
|
||||||
|
#else
|
||||||
|
uint16_t raw_data[0x440];
|
||||||
|
#endif
|
||||||
} GB_sgb_border_t;
|
} GB_sgb_border_t;
|
||||||
|
|
||||||
#ifdef GB_INTERNAL
|
#ifdef GB_INTERNAL
|
||||||
|
Loading…
Reference in New Issue
Block a user