Merge pull request #108144 from bruvzg/sdl_std_inc

[SDL] Fix missing header build error on some Linux systems.
This commit is contained in:
Thaddeus Crews 2025-07-03 12:21:24 -05:00
commit afa4e2ac89
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 15 additions and 0 deletions

View file

@ -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" {

View 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" {