1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

lib: replace SDL usage to Boost one

It is safer and header-only, and can be removed after C++23 is accepted.
There is no need for SDL in non-GUI.
This commit is contained in:
Konstantin
2023-02-02 23:40:00 +03:00
parent 70786f4963
commit cffdabf48e
4 changed files with 18 additions and 10 deletions

View File

@@ -10,14 +10,12 @@
#include "StdInc.h"
#include "CBinaryReader.h"
//FIXME:library file depends on SDL - make cause troubles
#include <SDL_endian.h>
#include "CInputStream.h"
#include "../CGeneralTextHandler.h"
VCMI_LIB_NAMESPACE_BEGIN
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
#ifdef VCMI_ENDIAN_BIG
template <typename CData>
CData readLE(CData data)
{