|
|
Tested on NetBSD 2.0 (version 1.x used GCC 2) with FLTK 1.4 git revision b3b0512.
Compiler: GCC 3.3 (supports C99, but the system libc only has partial support).
The macro "FL_DEPRECATED" does not work.
Because there was no problem on AIX with GCC 3.4, I changed a threshold with this patch:
patch_FL_fl_attr.h.txt
The Fl_Terminal widget has a problem with "putchar()".
Looks like some header indirectly includes "stdio.h", which defines "putchar()" as a macro on this system.
POSIX defines "putchar()" as equivalent to "putc()":
https://pubs.opengroup.org/onlinepubs/9699919799/functions/putchar.html
And "putc()" is allowed to be implemented as macro:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/putc.html
The FLTK code seems to ask for "Fl_Terminal::putchar()" only.
This patch explicitly undefines the macro "putchar()":
Tested on NetBSD 9.3 (current stable version) with FLTK 1.4 git revision 4742d83.
Compiler: GCC 7.5 (system libc should be POSIX.1-2001 conformant, POSIX.1-2008 still not supported).
Can be compiled, but needs the patch from #942 too. Otherwise the mount point list in the file browser does not work.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/944@github.com>
[ Direct Link to Message ] | |
|
| |