From 77815779203c55de0173cdf69abae97e10b7bf16 Mon Sep 17 00:00:00 2001 From: Rupert Carmichael <5050061-carmiker@users.noreply.gitlab.com> Date: Fri, 15 May 2020 20:18:26 -0400 Subject: [PATCH] Fix libretro build for GCC 10 --- libretro/libretro.c | 2 ++ libretro/osd.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libretro/libretro.c b/libretro/libretro.c index f709510..17319da 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -99,6 +99,8 @@ STATIC_ASSERT(z80_overflow, sms_ntsc_t *sms_ntsc; md_ntsc_t *md_ntsc; +t_config config; + char GG_ROM[256]; char AR_ROM[256]; char SK_ROM[256]; diff --git a/libretro/osd.h b/libretro/osd.h index ad2b033..1ba4f61 100644 --- a/libretro/osd.h +++ b/libretro/osd.h @@ -87,7 +87,7 @@ typedef struct uint8 padtype; } t_input_config; -struct +typedef struct { char version[16]; uint8 hq_fm; @@ -129,7 +129,9 @@ struct uint8 gun_cursor; uint32 overclock; uint8 no_sprite_limit; -} config; +} t_config; + +extern t_config config; extern char GG_ROM[256]; extern char AR_ROM[256];