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