diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-03-27 15:04:55 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-03-27 15:04:55 +0100 |
| commit | 6db6a9d8b851dfa5a9a379a8aa9ac516aa6e19d2 (patch) | |
| tree | 3d40b25cf3645edd0ec4b8484d72e5a08346fd46 | |
| parent | 8424af743b2ccbc0cabd584216627bed7baad4af (diff) | |
Remove reference to 'configure' from comment
Explain details of the mentioned 'hack' referring to and citing
parts of the original commit log.
| -rw-r--r-- | src/fl_write_png.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
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 <FL/Fl_PNG_Image.H> #include <FL/Fl_RGB_Image.H> #include <FL/fl_string_functions.h> -#include <FL/fl_utf8.h> // fl_fopen() +#include <FL/fl_utf8.h> // fl_fopen() #include <stdio.h> -#include <time.h> // 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 <time.h> // PNG library include files |
