Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DRIVER_WINRT
This commit is contained in:
1 parent
e7b67b346f
commit
d986747f70
12 files changed
+18
-18
No files matched your search
+4
-4
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#if SDL_VIDEO_OPENGL_EGL
|
#if SDL_VIDEO_OPENGL_EGL
|
||||||
|
|
||||||
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || SDL_VIDEO_DRIVER_WINRT
|
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || defined(SDL_VIDEO_DRIVER_WINRT)
|
||||||
#include "../core/windows/SDL_windows.h"
|
#include "../core/windows/SDL_windows.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_VIDEO_DRIVER_ANDROID
|
#ifdef SDL_VIDEO_DRIVER_ANDROID
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
#define DEFAULT_OGL_ES_PVR "libGLES_CM.so"
|
#define DEFAULT_OGL_ES_PVR "libGLES_CM.so"
|
||||||
#define DEFAULT_OGL_ES "libGLESv1_CM.so"
|
#define DEFAULT_OGL_ES "libGLESv1_CM.so"
|
||||||
|
|
||||||
#elif defined(SDL_VIDEO_DRIVER_WINDOWS) || SDL_VIDEO_DRIVER_WINRT
|
#elif defined(SDL_VIDEO_DRIVER_WINDOWS) || defined(SDL_VIDEO_DRIVER_WINRT)
|
||||||
/* EGL AND OpenGL ES support via ANGLE */
|
/* EGL AND OpenGL ES support via ANGLE */
|
||||||
#define DEFAULT_EGL "libEGL.dll"
|
#define DEFAULT_EGL "libEGL.dll"
|
||||||
#define DEFAULT_OGL "opengl32.dll"
|
#define DEFAULT_OGL "opengl32.dll"
|
||||||
@@ -301,14 +301,14 @@ static int SDL_EGL_LoadLibraryInternal(_THIS, const char *egl_path)
|
|||||||
{
|
{
|
||||||
void *egl_dll_handle = NULL, *opengl_dll_handle = NULL;
|
void *egl_dll_handle = NULL, *opengl_dll_handle = NULL;
|
||||||
const char *path = NULL;
|
const char *path = NULL;
|
||||||
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || SDL_VIDEO_DRIVER_WINRT
|
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || defined(SDL_VIDEO_DRIVER_WINRT)
|
||||||
const char *d3dcompiler;
|
const char *d3dcompiler;
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_RPI
|
#if SDL_VIDEO_DRIVER_RPI
|
||||||
SDL_bool vc4 = (0 == access("/sys/module/vc4/", F_OK));
|
SDL_bool vc4 = (0 == access("/sys/module/vc4/", F_OK));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || SDL_VIDEO_DRIVER_WINRT
|
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || defined(SDL_VIDEO_DRIVER_WINRT)
|
||||||
d3dcompiler = SDL_GetHint(SDL_HINT_VIDEO_WIN_D3DCOMPILER);
|
d3dcompiler = SDL_GetHint(SDL_HINT_VIDEO_WIN_D3DCOMPILER);
|
||||||
if (d3dcompiler) {
|
if (d3dcompiler) {
|
||||||
if (SDL_strcasecmp(d3dcompiler, "none") != 0) {
|
if (SDL_strcasecmp(d3dcompiler, "none") != 0) {
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ static VideoBootStrap *bootstrap[] = {
|
|||||||
#ifdef SDL_VIDEO_DRIVER_WINDOWS
|
#ifdef SDL_VIDEO_DRIVER_WINDOWS
|
||||||
&WINDOWS_bootstrap,
|
&WINDOWS_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
&WINRT_bootstrap,
|
&WINRT_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_HAIKU
|
#if SDL_VIDEO_DRIVER_HAIKU
|
||||||
@@ -4656,7 +4656,7 @@ int SDL_GetMessageBoxCount(void)
|
|||||||
#ifdef SDL_VIDEO_DRIVER_WINDOWS
|
#ifdef SDL_VIDEO_DRIVER_WINDOWS
|
||||||
#include "windows/SDL_windowsmessagebox.h"
|
#include "windows/SDL_windowsmessagebox.h"
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
#include "winrt/SDL_winrtmessagebox.h"
|
#include "winrt/SDL_winrtmessagebox.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_VIDEO_DRIVER_COCOA
|
#ifdef SDL_VIDEO_DRIVER_COCOA
|
||||||
@@ -4681,7 +4681,7 @@ int SDL_GetMessageBoxCount(void)
|
|||||||
#include "vita/SDL_vitamessagebox.h"
|
#include "vita/SDL_vitamessagebox.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || SDL_VIDEO_DRIVER_WINRT || defined(SDL_VIDEO_DRIVER_COCOA) || defined(SDL_VIDEO_DRIVER_UIKIT) || SDL_VIDEO_DRIVER_X11 || SDL_VIDEO_DRIVER_WAYLAND || SDL_VIDEO_DRIVER_HAIKU || SDL_VIDEO_DRIVER_RISCOS
|
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || defined(SDL_VIDEO_DRIVER_WINRT) || defined(SDL_VIDEO_DRIVER_COCOA) || defined(SDL_VIDEO_DRIVER_UIKIT) || SDL_VIDEO_DRIVER_X11 || SDL_VIDEO_DRIVER_WAYLAND || SDL_VIDEO_DRIVER_HAIKU || SDL_VIDEO_DRIVER_RISCOS
|
||||||
static SDL_bool SDL_IsMessageboxValidForDriver(const SDL_MessageBoxData *messageboxdata, SDL_SYSWM_TYPE drivertype)
|
static SDL_bool SDL_IsMessageboxValidForDriver(const SDL_MessageBoxData *messageboxdata, SDL_SYSWM_TYPE drivertype)
|
||||||
{
|
{
|
||||||
SDL_SysWMinfo info;
|
SDL_SysWMinfo info;
|
||||||
@@ -4753,7 +4753,7 @@ int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
|||||||
retval = 0;
|
retval = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
if (retval == -1 &&
|
if (retval == -1 &&
|
||||||
SDL_IsMessageboxValidForDriver(messageboxdata, SDL_SYSWM_WINRT) &&
|
SDL_IsMessageboxValidForDriver(messageboxdata, SDL_SYSWM_WINRT) &&
|
||||||
WINRT_ShowMessageBox(messageboxdata, buttonid) == 0) {
|
WINRT_ShowMessageBox(messageboxdata, buttonid) == 0) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Windows includes:
|
* Windows includes:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
|
|
||||||
/* Windows includes */
|
/* Windows includes */
|
||||||
#include <roapi.h>
|
#include <roapi.h>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
|
|
||||||
/* Windows-specific includes */
|
/* Windows-specific includes */
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "../../core/windows/SDL_windows.h"
|
#include "../../core/windows/SDL_windows.h"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
|
|
||||||
extern int WINRT_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
|
extern int WINRT_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid);
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Windows includes:
|
* Windows includes:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL
|
#if defined(SDL_VIDEO_DRIVER_WINRT) && SDL_VIDEO_OPENGL_EGL
|
||||||
|
|
||||||
/* EGL implementation of SDL OpenGL support */
|
/* EGL implementation of SDL OpenGL support */
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#ifndef SDL_winrtopengles_h_
|
#ifndef SDL_winrtopengles_h_
|
||||||
#define SDL_winrtopengles_h_
|
#define SDL_winrtopengles_h_
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT && SDL_VIDEO_OPENGL_EGL
|
#if defined(SDL_VIDEO_DRIVER_WINRT) && SDL_VIDEO_OPENGL_EGL
|
||||||
|
|
||||||
#include "../SDL_sysvideo.h"
|
#include "../SDL_sysvideo.h"
|
||||||
#include "../SDL_egl_c.h"
|
#include "../SDL_egl_c.h"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
|
|
||||||
/* SDL includes */
|
/* SDL includes */
|
||||||
#include "SDL_winrtevents_c.h"
|
#include "SDL_winrtevents_c.h"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "SDL_internal.h"
|
#include "SDL_internal.h"
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_WINRT
|
#ifdef SDL_VIDEO_DRIVER_WINRT
|
||||||
|
|
||||||
/* WinRT SDL video driver implementation
|
/* WinRT SDL video driver implementation
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user