diff --git a/src/SDL_internal.h b/src/SDL_internal.h index 3fdd5b6997..967dab3c67 100644 --- a/src/SDL_internal.h +++ b/src/SDL_internal.h @@ -191,11 +191,6 @@ #define SDL_VIDEO_RENDER_SW 1 #endif -/* STB image conversion */ -#if !defined(SDL_HAVE_STB) && !defined(SDL_LEAN_AND_MEAN) -#define SDL_HAVE_STB 1 -#endif - /* YUV formats - handling of YUV surfaces - blitting and conversion functions */ diff --git a/src/video/SDL_stb.c b/src/video/SDL_stb.c index a4b0a718ab..78e89c7359 100644 --- a/src/video/SDL_stb.c +++ b/src/video/SDL_stb.c @@ -23,6 +23,11 @@ #include "SDL_stb_c.h" #include "SDL_surface_c.h" +/* STB image conversion */ +#ifndef SDL_DISABLE_STB +#define SDL_HAVE_STB +#endif + #ifdef SDL_HAVE_STB //////////////////////////////////////////////////////////////////////////// #define malloc SDL_malloc