From 793149d1bdf6fcdbf9ad54632285e3bd13b9e1c8 Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Thu, 11 May 2023 17:44:25 +0200 Subject: [PATCH] VIDEO: Include png.h before sim_defs.h. Older versions of the PNG library header file want to include setjmp.h and complain if it's already included. --- sim_video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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