Fix -Wundef warnings due to use of unguarded SDL_VIDEO_RENDER_METAL

This commit is contained in:
Anonymous Maarten committed 2023-03-28 19:29:43 +02:00
1 parent ece25f27fa
commit 8299dd470a
2 files changed
+2 -2

No files matched your search

+1 -1
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
+1 -1
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"