mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Use SDL3-compatible SDL includes when SDL3 headers are available
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user