mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-25 15:48:58 +00:00
Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_VITA
This commit is contained in:
@@ -97,7 +97,7 @@ static VideoBootStrap *bootstrap[] = {
|
||||
#ifdef SDL_VIDEO_DRIVER_PSP
|
||||
&PSP_bootstrap,
|
||||
#endif
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
&VITA_bootstrap,
|
||||
#endif
|
||||
#if SDL_VIDEO_DRIVER_N3DS
|
||||
@@ -4674,10 +4674,10 @@ int SDL_GetMessageBoxCount(void)
|
||||
#ifdef SDL_VIDEO_DRIVER_HAIKU
|
||||
#include "haiku/SDL_bmessagebox.h"
|
||||
#endif
|
||||
#if SDL_VIDEO_DRIVER_RISCOS
|
||||
#ifdef SDL_VIDEO_DRIVER_RISCOS
|
||||
#include "riscos/SDL_riscosmessagebox.h"
|
||||
#endif
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
#include "vita/SDL_vitamessagebox.h"
|
||||
#endif
|
||||
|
||||
@@ -4802,7 +4802,7 @@ int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
||||
retval = 0;
|
||||
}
|
||||
#endif
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
if (retval == -1 &&
|
||||
VITA_ShowMessageBox(messageboxdata, buttonid) == 0) {
|
||||
retval = 0;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
|
||||
#include "SDL_vitavideo.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#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 <string.h>
|
||||
#include <psp2/kernel/modulemgr.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#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 <string.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#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 <string.h>
|
||||
#include <psp2/kernel/modulemgr.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
|
||||
#include <psp2/kernel/processmgr.h>
|
||||
#include <psp2/ctrl.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
|
||||
#include "SDL_vitavideo.h"
|
||||
#include "SDL_vitamessagebox.h"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef 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);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
|
||||
#include <psp2/kernel/processmgr.h>
|
||||
#include <psp2/ctrl.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
|
||||
#include <psp2/kernel/processmgr.h>
|
||||
#include <psp2/touch.h>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
|
||||
/* SDL internals */
|
||||
#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_DestroyWindow(_THIS, SDL_Window *window);
|
||||
|
||||
#if SDL_VIDEO_DRIVER_VITA
|
||||
#ifdef SDL_VIDEO_DRIVER_VITA
|
||||
#if defined(SDL_VIDEO_VITA_PVR_OGL)
|
||||
/* OpenGL functions */
|
||||
int VITA_GL_LoadLibrary(_THIS, const char *path);
|
||||
|
||||
Reference in New Issue
Block a user