diff --git a/SDL2pp/SDL2pp.hh b/SDL2pp/SDL2pp.hh index 3bc6059..85f9b65 100644 --- a/SDL2pp/SDL2pp.hh +++ b/SDL2pp/SDL2pp.hh @@ -95,12 +95,14 @@ #include #include -//////////////////////////////////////////////////////////// -/// \defgroup image SDL_image -/// -/// \brief Functions that are specific to SDL_image library -/// -//////////////////////////////////////////////////////////// -#include +#ifdef SDL2PP_WITH_IMAGE + //////////////////////////////////////////////////////////// + /// \defgroup image SDL_image + /// + /// \brief Functions that are specific to SDL_image library + /// + //////////////////////////////////////////////////////////// +# include +#endif #endif