mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-21 08:55:21 +01:00
IrrlichtMt: Initial SDL3 support (#16583)
This commit implements support for SDL3, more specifically, >= 3.2.0 (the first released version). Almost all changes were made according to https://github.com/libsdl-org/SDL/blob/release-3.2.10/docs/README-migration.md?plain=1 and the suggestions provided by `SDL3/SDL_oldnames.h`.
This commit is contained in:
@@ -17,9 +17,13 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_)
|
||||
#include <SDL_clipboard.h>
|
||||
#include <SDL_version.h>
|
||||
// "SDL_version.h" for SDL_VERSION_ATLEAST
|
||||
#ifdef _IRR_USE_SDL3_
|
||||
#include <SDL3/SDL_clipboard.h>
|
||||
#include <SDL3/SDL_version.h>
|
||||
#else
|
||||
#include <SDL_clipboard.h>
|
||||
#include <SDL_version.h>
|
||||
#endif
|
||||
|
||||
#include "fast_atof.h"
|
||||
@@ -89,4 +93,3 @@ const c8 *COSOperator::getTextFromPrimarySelection() const
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user