Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_VITA
This commit is contained in:
1 parent
b8ecb78f2b
commit
2095aefbb6
12 files changed
+15
-15
No files matched your search
@@ -97,7 +97,7 @@ static VideoBootStrap *bootstrap[] = {
|
|||||||
#ifdef SDL_VIDEO_DRIVER_PSP
|
#ifdef SDL_VIDEO_DRIVER_PSP
|
||||||
&PSP_bootstrap,
|
&PSP_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
&VITA_bootstrap,
|
&VITA_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_N3DS
|
#if SDL_VIDEO_DRIVER_N3DS
|
||||||
@@ -4674,10 +4674,10 @@ int SDL_GetMessageBoxCount(void)
|
|||||||
#ifdef SDL_VIDEO_DRIVER_HAIKU
|
#ifdef SDL_VIDEO_DRIVER_HAIKU
|
||||||
#include "haiku/SDL_bmessagebox.h"
|
#include "haiku/SDL_bmessagebox.h"
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_RISCOS
|
#ifdef SDL_VIDEO_DRIVER_RISCOS
|
||||||
#include "riscos/SDL_riscosmessagebox.h"
|
#include "riscos/SDL_riscosmessagebox.h"
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
#include "vita/SDL_vitamessagebox.h"
|
#include "vita/SDL_vitamessagebox.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -4802,7 +4802,7 @@ int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
|||||||
retval = 0;
|
retval = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
if (retval == -1 &&
|
if (retval == -1 &&
|
||||||
VITA_ShowMessageBox(messageboxdata, buttonid) == 0) {
|
VITA_ShowMessageBox(messageboxdata, buttonid) == 0) {
|
||||||
retval = 0;
|
retval = 0;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
|
|
||||||
#include "SDL_vitavideo.h"
|
#include "SDL_vitavideo.h"
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA && SDL_VIDEO_VITA_PVR && defined(SDL_VIDEO_VITA_PVR_OGL)
|
#if defined(SDL_VIDEO_DRIVER_VITA) && SDL_VIDEO_VITA_PVR && defined(SDL_VIDEO_VITA_PVR_OGL)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <psp2/kernel/modulemgr.h>
|
#include <psp2/kernel/modulemgr.h>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA && SDL_VIDEO_VITA_PIB
|
#if defined(SDL_VIDEO_DRIVER_VITA) && SDL_VIDEO_VITA_PIB
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA && SDL_VIDEO_VITA_PVR
|
#if defined(SDL_VIDEO_DRIVER_VITA) && SDL_VIDEO_VITA_PVR
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <psp2/kernel/modulemgr.h>
|
#include <psp2/kernel/modulemgr.h>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
|
|
||||||
#include <psp2/kernel/processmgr.h>
|
#include <psp2/kernel/processmgr.h>
|
||||||
#include <psp2/ctrl.h>
|
#include <psp2/ctrl.h>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
|
|
||||||
#include "SDL_vitavideo.h"
|
#include "SDL_vitavideo.h"
|
||||||
#include "SDL_vitamessagebox.h"
|
#include "SDL_vitamessagebox.h"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#ifndef SDL_vitamessagebox_h_
|
#ifndef SDL_vitamessagebox_h_
|
||||||
#define SDL_vitamessagebox_h_
|
#define SDL_vitamessagebox_h_
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
|
|
||||||
extern int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
|
extern int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
|
|
||||||
#include <psp2/kernel/processmgr.h>
|
#include <psp2/kernel/processmgr.h>
|
||||||
#include <psp2/ctrl.h>
|
#include <psp2/ctrl.h>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
|
|
||||||
#include <psp2/kernel/processmgr.h>
|
#include <psp2/kernel/processmgr.h>
|
||||||
#include <psp2/touch.h>
|
#include <psp2/touch.h>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
|
|
||||||
/* SDL internals */
|
/* SDL internals */
|
||||||
#include "../SDL_sysvideo.h"
|
#include "../SDL_sysvideo.h"
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ void VITA_RestoreWindow(_THIS, SDL_Window *window);
|
|||||||
void VITA_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed);
|
void VITA_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed);
|
||||||
void VITA_DestroyWindow(_THIS, SDL_Window *window);
|
void VITA_DestroyWindow(_THIS, SDL_Window *window);
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_VITA
|
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||||
#if defined(SDL_VIDEO_VITA_PVR_OGL)
|
#if defined(SDL_VIDEO_VITA_PVR_OGL)
|
||||||
/* OpenGL functions */
|
/* OpenGL functions */
|
||||||
int VITA_GL_LoadLibrary(_THIS, const char *path);
|
int VITA_GL_LoadLibrary(_THIS, const char *path);
|
||||||
|
|||||||
Reference in new issue
Block a user