From 6db6a9d8b851dfa5a9a379a8aa9ac516aa6e19d2 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 27 Mar 2025 15:04:55 +0100 Subject: Remove reference to 'configure' from comment Explain details of the mentioned 'hack' referring to and citing parts of the original commit log. --- src/fl_write_png.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/fl_write_png.cxx b/src/fl_write_png.cxx index 0f980476a..855e03551 100644 --- a/src/fl_write_png.cxx +++ b/src/fl_write_png.cxx @@ -1,7 +1,7 @@ // // Fl_PNG_Image support functions for the Fast Light Tool Kit (FLTK). // -// Copyright 2005-2021 by Bill Spitzak and others. +// Copyright 2005-2025 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -18,9 +18,16 @@ #include #include #include -#include // fl_fopen() +#include // fl_fopen() #include -#include // hack to restore "configure --enable-x11" on macOS ≥ 11 + +// FIXME: see original commit 2db94dcb4c5bf2ef3fa92f1cd6a41f3f90105361 +// ... about building X11 backend on macOS ≥ 11: +// "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." + +#include // PNG library include files -- cgit v1.2.3