FLTK logo

[fltk/fltk] Support for NetBSD (Issue #944)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] Support for NetBSD (Issue #944) Michael Bäuerle 04:28 Mar 25  
 

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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.