Skip to content

Commit afa4e2a

Browse files
committed
Merge pull request #108144 from bruvzg/sdl_std_inc
[SDL] Fix missing header build error on some Linux systems.
2 parents 6e5297a + f69eccd commit afa4e2a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

thirdparty/sdl/joystick/SDL_sysjoystick.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
// This is the system specific header for the SDL joystick API
2727
#include "SDL_joystick_c.h"
2828

29+
#include <stdlib.h>
30+
2931
// Set up for C function definitions, even when using C++
3032
#ifdef __cplusplus
3133
extern "C" {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/thirdparty/sdl/joystick/SDL_sysjoystick.h b/thirdparty/sdl/joystick/SDL_sysjoystick.h
2+
index 041ebc3b50..9b6ea65e9c 100644
3+
--- a/thirdparty/sdl/joystick/SDL_sysjoystick.h
4+
+++ b/thirdparty/sdl/joystick/SDL_sysjoystick.h
5+
@@ -26,6 +26,8 @@
6+
// This is the system specific header for the SDL joystick API
7+
#include "SDL_joystick_c.h"
8+
9+
+#include <stdlib.h>
10+
+
11+
// Set up for C function definitions, even when using C++
12+
#ifdef __cplusplus
13+
extern "C" {

0 commit comments

Comments
 (0)