Use SDL3-compatible SDL includes when SDL3 headers are available

This commit is contained in:
Sasha Szpakowski
2024-10-06 20:27:28 -03:00
parent 20b527f2ab
commit e986160431
27 changed files with 122 additions and 2 deletions
+4
View File
@@ -49,8 +49,12 @@
#endif
#ifdef LOVE_GRAPHICS_VULKAN
#if __has_include(<SDL3/SDL_vulkan.h>)
#include <SDL3/SDL_vulkan.h>
#else
#include <SDL_vulkan.h>
#endif
#endif
#if defined(LOVE_WINDOWS)
#define WIN32_LEAN_AND_MEAN
+4
View File
@@ -27,7 +27,11 @@
#include "graphics/Graphics.h"
// SDL
#if __has_include(<SDL3/SDL.h>)
#include <SDL3/SDL.h>
#else
#include <SDL.h>
#endif
namespace love
{