[fpc-pascal] os dependency with ifdef
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Mar 18 19:22:11 CET 2006
On 17 Mar 2006, at 19:26, Felipe Monteiro de Carvalho wrote:
> You can mostly assume that if it works for Linux, then it will work
> for FreeBSD and all other BSDs and even Solaris (and vice-versa).
>
> This isnĀ“t true for Mac OS X. Althought it is based on FreeBSD, it is
> very, very different from standard unix boxes.
It shares at least 90% of the rtl with the other BSD's, so it isn't
that different at the basic unix level. It's mainly different if you
want to use OS X-specific functionality (like its gui environment
instead of X11). Regarding serial port stuff: none of the Macs which
can run the latest version of Mac OS X still has a serial port. There
are USB-serial converters out there though, and their drivers (.e.g
from Keyspan) create a regular serial port device in /dev which works
identically to those under other unixes.
It's not because other interfaces are available, that there is no
compatibility with the traditional unix way of working.
Jonas
More information about the fpc-pascal
mailing list