From d036ad84ae7e6ee4e3f00021d26ea2db227a6e13 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 31 Jan 2015 22:43:05 +0100 Subject: [PATCH] Added missing include statements in implementation for PSP. SDL_internal.h should be included to support dynamic API and fix warnings. --- src/audio/psp/SDL_pspaudio.c | 1 + src/joystick/psp/SDL_sysjoystick.c | 1 + src/thread/psp/SDL_syssem.c | 1 + src/thread/psp/SDL_systhread.c | 2 +- src/timer/psp/SDL_systimer.c | 1 + src/video/psp/SDL_pspevents.c | 1 + src/video/psp/SDL_pspgl.c | 1 + src/video/psp/SDL_pspmouse.c | 1 + 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/audio/psp/SDL_pspaudio.c b/src/audio/psp/SDL_pspaudio.c index 5b1705926..3abe3a110 100644 --- a/src/audio/psp/SDL_pspaudio.c +++ b/src/audio/psp/SDL_pspaudio.c @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#include "../../SDL_internal.h" #include #include diff --git a/src/joystick/psp/SDL_sysjoystick.c b/src/joystick/psp/SDL_sysjoystick.c index f848d1cee..3f9bd2d92 100644 --- a/src/joystick/psp/SDL_sysjoystick.c +++ b/src/joystick/psp/SDL_sysjoystick.c @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#include "../../SDL_internal.h" /* This is the PSP implementation of the SDL joystick API */ #include diff --git a/src/thread/psp/SDL_syssem.c b/src/thread/psp/SDL_syssem.c index 27d3251a2..3abb83565 100644 --- a/src/thread/psp/SDL_syssem.c +++ b/src/thread/psp/SDL_syssem.c @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#include "../../SDL_internal.h" /* Semaphore functions for the PSP. */ diff --git a/src/thread/psp/SDL_systhread.c b/src/thread/psp/SDL_systhread.c index d2fbeeb2f..2d5433c53 100644 --- a/src/thread/psp/SDL_systhread.c +++ b/src/thread/psp/SDL_systhread.c @@ -18,7 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ - +#include "../../SDL_internal.h" /* PSP thread management routines for SDL */ diff --git a/src/timer/psp/SDL_systimer.c b/src/timer/psp/SDL_systimer.c index b706f4495..1ae3d7fe5 100644 --- a/src/timer/psp/SDL_systimer.c +++ b/src/timer/psp/SDL_systimer.c @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#include "../../SDL_internal.h" #include "SDL_thread.h" #include "SDL_timer.h" diff --git a/src/video/psp/SDL_pspevents.c b/src/video/psp/SDL_pspevents.c index d096c0616..982186b47 100644 --- a/src/video/psp/SDL_pspevents.c +++ b/src/video/psp/SDL_pspevents.c @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#include "../../SDL_internal.h" /* Being a null driver, there's no event stream. We just define stubs for most of the API. */ diff --git a/src/video/psp/SDL_pspgl.c b/src/video/psp/SDL_pspgl.c index d24e72292..8b2cd8865 100644 --- a/src/video/psp/SDL_pspgl.c +++ b/src/video/psp/SDL_pspgl.c @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#include "../../SDL_internal.h" #include #include diff --git a/src/video/psp/SDL_pspmouse.c b/src/video/psp/SDL_pspmouse.c index 8df3d614e..d9d8eefd2 100644 --- a/src/video/psp/SDL_pspmouse.c +++ b/src/video/psp/SDL_pspmouse.c @@ -18,6 +18,7 @@ misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#include "../../SDL_internal.h" #include