1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

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.
This commit is contained in:
Lars Brinkhoff 2023-05-11 17:44:25 +02:00 committed by Mark Pizzolato
parent f566e104f6
commit efbf73f384

View File

@ -27,6 +27,9 @@
11-Jun-2013 MB First version
*/
#if defined(HAVE_LIBPNG) && defined(USE_SIM_VIDEO) && defined(HAVE_LIBSDL)
#include <png.h>
#endif
#include "sim_video.h"
#include "scp.h"
@ -154,7 +157,6 @@ static char tmp_key_name[40];
* http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
*/
#include <SDL.h>
#include <png.h>
#include <zlib.h>
#define SUCCESS 0