Loading PNG files are part of the core SDL library
Don't disable this functionality when defining SDL_LEAN_AND_MEAN, but if you need to, you can define SDL_DISABLE_STB if you want to compile this out. Fixes https://github.com/libsdl-org/SDL/issues/15139
This commit is contained in:
@@ -191,11 +191,6 @@
|
|||||||
#define SDL_VIDEO_RENDER_SW 1
|
#define SDL_VIDEO_RENDER_SW 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* STB image conversion */
|
|
||||||
#if !defined(SDL_HAVE_STB) && !defined(SDL_LEAN_AND_MEAN)
|
|
||||||
#define SDL_HAVE_STB 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* YUV formats
|
/* YUV formats
|
||||||
- handling of YUV surfaces
|
- handling of YUV surfaces
|
||||||
- blitting and conversion functions */
|
- blitting and conversion functions */
|
||||||
|
|||||||
@@ -23,6 +23,11 @@
|
|||||||
#include "SDL_stb_c.h"
|
#include "SDL_stb_c.h"
|
||||||
#include "SDL_surface_c.h"
|
#include "SDL_surface_c.h"
|
||||||
|
|
||||||
|
/* STB image conversion */
|
||||||
|
#ifndef SDL_DISABLE_STB
|
||||||
|
#define SDL_HAVE_STB
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef SDL_HAVE_STB
|
#ifdef SDL_HAVE_STB
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
#define malloc SDL_malloc
|
#define malloc SDL_malloc
|
||||||
|
|||||||
Reference in New Issue
Block a user