1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-03 14:31:51 +00:00
parent 6a3acac156
commit 87064b9911
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547457
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- libretro/retro_events.c.orig 2020-04-17 23:23:41 UTC
+++ libretro/retro_events.c
@@ -56,6 +56,8 @@ const uint8_t bit_values[8] = {0x01, 0x02, 0x04, 0x08,
#define MAX_BUTTONS 14
#define MAX_PADCFG 4
+bool (*ev_events)(void);
+
static uint8_t keyboard_translation[MAX_KEYSYMS];
unsigned int last_input[PORTS_NUMBER] = {0,0};
uint32_t padnum = 0;

View File

@ -0,0 +1,11 @@
--- libretro/retro_events.h.orig 2020-04-17 23:23:41 UTC
+++ 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();