mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
libretro-cap32: fix compilation with gcc10
This commit is contained in:
parent
5304376723
commit
bfc49c9c8e
@ -0,0 +1,35 @@
|
||||
From 2a00890a52ee21b63100e21dcb95940943ba6810 Mon Sep 17 00:00:00 2001
|
||||
From: Vladimir Serbinenko <phcoder@google.com>
|
||||
Date: Mon, 4 May 2020 18:11:21 +0200
|
||||
Subject: [PATCH] Fix declaration of ev_events
|
||||
|
||||
---
|
||||
libretro/retro_events.c | 1 +
|
||||
libretro/retro_events.h | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libretro/retro_events.c b/libretro/retro_events.c
|
||||
index 50f4364..0a9e3e9 100644
|
||||
--- a/libretro/retro_events.c
|
||||
+++ b/libretro/retro_events.c
|
||||
@@ -59,6 +59,7 @@ const uint8_t bit_values[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 };
|
||||
static uint8_t keyboard_translation[MAX_KEYSYMS];
|
||||
unsigned int last_input[PORTS_NUMBER] = {0,0};
|
||||
uint32_t padnum = 0;
|
||||
+bool (*ev_events)(void);
|
||||
|
||||
const uint8_t btnPAD[MAX_PADCFG][MAX_BUTTONS] = {
|
||||
{ // JOYSTICK CFG
|
||||
diff --git a/libretro/retro_events.h b/libretro/retro_events.h
|
||||
index 9f53d36..63e24b5 100644
|
||||
--- a/libretro/retro_events.h
|
||||
+++ b/libretro/retro_events.h
|
||||
@@ -154,7 +154,7 @@ typedef struct {
|
||||
#define JOY_EVENT_ID_Y 1
|
||||
|
||||
void ev_joysticks();
|
||||
-bool (*ev_events)(void);
|
||||
+extern bool (*ev_events)(void);
|
||||
void ev_combo_set(unsigned btn);
|
||||
void ev_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user