Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_METAL

This commit is contained in:
Anonymous Maarten
2023-03-27 15:58:07 +02:00
parent ece25f27fa
commit 8299dd470a
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ static const SDL_RenderDriver *render_drivers[] = {
#ifdef SDL_VIDEO_RENDER_D3D
&D3D_RenderDriver,
#endif
#if SDL_VIDEO_RENDER_METAL
#ifdef SDL_VIDEO_RENDER_METAL
&METAL_RenderDriver,
#endif
#if SDL_VIDEO_RENDER_OGL

View File

@@ -20,7 +20,7 @@
*/
#include "SDL_internal.h"
#if SDL_VIDEO_RENDER_METAL && !defined(SDL_RENDER_DISABLED)
#if defined(SDL_VIDEO_RENDER_METAL) && !defined(SDL_RENDER_DISABLED)
#include "../SDL_sysrender.h"