SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 09cbf6a13f23b46bb173ffe1e58570fdb9b45af4 parent a856566b54ffa92df66055e817dad83d7f174ba2 Author: Lior Halphon <LIJI32@gmail.com> Date: Mon, 18 Jul 2022 22:19:10 +0300 Fix GCC C++ warning? #464 Diffstat:
| M | Core/save_state.h | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Core/save_state.h b/Core/save_state.h @@ -8,7 +8,7 @@ #ifdef __cplusplus /* For bsnes integration. C++ code does not need section information, and throws a fit over certain types such as anonymous enums inside unions */ -#define GB_SECTION(name, ...) __attribute__ ((aligned (8))) __VA_ARGS__ +#define GB_SECTION(name, ...) struct __attribute__ ((aligned (8))) { __VA_ARGS__} #else #define GB_SECTION(name, ...) union __attribute__ ((aligned (8))) {uint8_t name##_section_start; struct {__VA_ARGS__};}; uint8_t name##_section_end[0]; #define GB_SECTION_OFFSET(name) (offsetof(GB_gameboy_t, name##_section_start))
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.