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
+7
View File
@@ -23,6 +23,12 @@
#include "window/Window.h"
// SDL
#if __has_include(<SDL3/SDL_clipboard.h>)
#include <SDL3/SDL_clipboard.h>
#include <SDL3/SDL_cpuinfo.h>
#include <SDL3/SDL_version.h>
#include <SDL3/SDL_locale.h>
#else
#include <SDL_clipboard.h>
#include <SDL_cpuinfo.h>
#include <SDL_version.h>
@@ -30,6 +36,7 @@
#if SDL_VERSION_ATLEAST(2, 0, 14)
#include <SDL_locale.h>
#endif
#endif
namespace love
{
+4
View File
@@ -26,7 +26,11 @@
#include "common/EnumMap.h"
// SDL
#if __has_include(<SDL3/SDL_power.h>)
#include <SDL3/SDL_power.h>
#else
#include <SDL_power.h>
#endif
namespace love
{