From 2db94dcb4c5bf2ef3fa92f1cd6a41f3f90105361 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:38:55 +0100 Subject: =?UTF-8?q?Hack=20to=20restore=20"configure=20--enable-x11"=20on?= =?UTF-8?q?=20macOS=20=E2=89=A5=2011?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since macOS 11, configure --enable-x11 (and the equivalent with CMake) fails when compiling fl_write_png.cxx in parsing of time.h. The error happens only if png.h is included without time.h having been included before. The fix is to #include time.h before png.h A better fix than his hack is desirable. --- src/fl_write_png.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/fl_write_png.cxx b/src/fl_write_png.cxx index 45e4da7ac..6d9c7fe89 100644 --- a/src/fl_write_png.cxx +++ b/src/fl_write_png.cxx @@ -20,6 +20,7 @@ #include #include // fl_fopen() #include +#include // hack to restore "configure --enable-x11" on macOS ≥ 11 // PNG library include files -- cgit v1.2.3