1
0
mirror of https://github.com/open-simh/simh.git synced 2026-03-04 10:44:55 +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
parent 783ee136d7
commit 793149d1bd

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"
@@ -148,7 +151,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