mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[SDL] Fix missing header build error on some Linux systems.
This commit is contained in:
parent
e1b4101e34
commit
f69eccddfb
2 changed files with 15 additions and 0 deletions
2
thirdparty/sdl/joystick/SDL_sysjoystick.h
vendored
2
thirdparty/sdl/joystick/SDL_sysjoystick.h
vendored
|
@ -26,6 +26,8 @@
|
|||
// This is the system specific header for the SDL joystick API
|
||||
#include "SDL_joystick_c.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
// Set up for C function definitions, even when using C++
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
13
thirdparty/sdl/patches/0003-std-include.patch
vendored
Normal file
13
thirdparty/sdl/patches/0003-std-include.patch
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/thirdparty/sdl/joystick/SDL_sysjoystick.h b/thirdparty/sdl/joystick/SDL_sysjoystick.h
|
||||
index 041ebc3b50..9b6ea65e9c 100644
|
||||
--- a/thirdparty/sdl/joystick/SDL_sysjoystick.h
|
||||
+++ b/thirdparty/sdl/joystick/SDL_sysjoystick.h
|
||||
@@ -26,6 +26,8 @@
|
||||
// This is the system specific header for the SDL joystick API
|
||||
#include "SDL_joystick_c.h"
|
||||
|
||||
+#include <stdlib.h>
|
||||
+
|
||||
// Set up for C function definitions, even when using C++
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
Loading…
Add table
Add a link
Reference in a new issue