diff --git a/sim_video.c b/sim_video.c index 1d3dafd2..d6220e57 100644 --- a/sim_video.c +++ b/sim_video.c @@ -27,6 +27,9 @@ 11-Jun-2013 MB First version */ +#if defined(HAVE_LIBPNG) && defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL) +#include +#endif #include "sim_video.h" #include "scp.h" @@ -148,7 +151,6 @@ static char tmp_key_name[40]; * http://www.libpng.org/pub/png/src/libpng-LICENSE.txt */ #include -#include #include #define SUCCESS 0