[fpc-devel] darwin - rtl include files

Jonas Maebe jonas.maebe at elis.ugent.be
Tue May 16 15:50:28 CEST 2006


On 16 mei 2006, at 15:40, Mattias Gaertner wrote:

>> See above. Jonas choose to only implement FPC_USE_LIBC for Darwin.
>
> Thanks.

Actually, libc is the only supported system interface for Mac OS X/ 
darwin (system calls are undocumented and change all the time, even  
between minor OS revisions). Libc is also guaranteed to be forward  
compatible (i.e., the situation that a program will not run anymore  
on a future OS release because it uses a symbol which no longer  
exists in a new libc, will not happen on Mac OS X unless there is a  
bug, which will then be fixed by Apple)

> AFAIK darwin has a libc,

There are several libc's for almost any OS out there.

> but FPC does not provide a unit for it. Right?

The libc unit is only provided for Linux/x86 for Kylix compatibility.  
Use unix/baseunix instead, which works on all *nix OS'es.

> And the FPC_USE_LIBC is set for all rtl sources under darwin. Right?

Yes.

> Is there a somewhere a list of the flags set in the FPC sources?

I don't think so.


Jonas



More information about the fpc-devel mailing list