FLTK logo

[fltk/fltk] Support for AIX (Issue #942)

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 AIX (Issue #942) Michael Bäuerle 02:31 Mar 22  
 

Tested on AIX 5.1 with FLTK 1.4 git revision b3b0512.
Compiler: GCC 3.4 (supports C99, but the system libc only has partial support).

The AIX mount point detection code is broken in FLTK 1.4:
The working FLTK 1.3 code is in "Fl_File_Browser.cxx" and activated by "defined(_AIX)".
It used a C90 style for-loop and with the comma two existing variables are initialized at the beginning.
In FLTK 1.4 this was changed to C99 style and the comma now has different semantics (defines two variables of type "int").

This patch should fix the problem:
patch_src_drivers_Unix_Fl_Unix_System_Driver.cxx.txt
With the patch the file "Fl_Unix_System_Driver.cxx" can be compiled.

I have not tested the fixed code yet, because the AIX 5.1 system libc does not provide the C99 "lround()" function.
As discussed with Albrecht, C90 is out of scope for FLTK 1.4, therefore I propose no patch for this problem.

At the weekend I can patch in a local lround() replacement to verify that Fl_File_Browser works as expected.


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/942@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'.