mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 00:28:23 +02:00
* declare C-library routines as external in libc for Darwin (so we
generate proper import entries)
This commit is contained in:
parent
05c20a184b
commit
e6c3cc44c9
@ -31,6 +31,7 @@ Interface
|
||||
{$i errno.inc} { Error numbers }
|
||||
{$i bunxtype.inc} { Types }
|
||||
{$ifdef FPC_USE_LIBC}
|
||||
const clib = 'c';
|
||||
{$i oscdeclh.inc}
|
||||
{$ELSE}
|
||||
{$i bunxh.inc} { Functions}
|
||||
@ -75,7 +76,11 @@ end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.7 2004-01-03 23:56:11 marco
|
||||
Revision 1.8 2004-01-04 21:04:08 jonas
|
||||
* declare C-library routines as external in libc for Darwin (so we
|
||||
generate proper import entries)
|
||||
|
||||
Revision 1.7 2004/01/03 23:56:11 marco
|
||||
* fix for 1.0 compability issue
|
||||
|
||||
Revision 1.6 2003/12/30 12:26:21 marco
|
||||
|
@ -30,6 +30,7 @@ Interface
|
||||
{$i errno.inc} { Error numbers }
|
||||
{$i bunxtype.inc} { Types }
|
||||
{$ifdef FPC_USE_LIBC}
|
||||
const clib = 'c';
|
||||
{$i oscdeclh.inc}
|
||||
{$ELSE}
|
||||
{$i bunxh.inc} { Functions}
|
||||
@ -73,7 +74,11 @@ end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.7 2003-12-31 20:01:00 marco
|
||||
Revision 1.8 2004-01-04 21:04:08 jonas
|
||||
* declare C-library routines as external in libc for Darwin (so we
|
||||
generate proper import entries)
|
||||
|
||||
Revision 1.7 2003/12/31 20:01:00 marco
|
||||
* workaround for buggy 1.0 building
|
||||
|
||||
Revision 1.6 2003/12/30 12:36:56 marco
|
||||
|
@ -144,7 +144,7 @@ begin
|
||||
end;
|
||||
|
||||
{$ifdef FPC_USE_LIBC} // can't remember why this is the case. Might be legacy.
|
||||
function xFpread(fd: cint; buf: pchar; nbytes : size_t): ssize_t; external name 'read';
|
||||
function xFpread(fd: cint; buf: pchar; nbytes : size_t): ssize_t; external clib name 'read';
|
||||
{$else}
|
||||
function xFpread(fd: cint; buf: pchar; nbytes : size_t): ssize_t; external name 'FPC_SYSC_READ';
|
||||
{$endif}
|
||||
@ -331,7 +331,11 @@ end;
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.8 2003-12-30 12:24:01 marco
|
||||
Revision 1.9 2004-01-04 21:04:08 jonas
|
||||
* declare C-library routines as external in libc for Darwin (so we
|
||||
generate proper import entries)
|
||||
|
||||
Revision 1.8 2003/12/30 12:24:01 marco
|
||||
* FPC_USE_LIBC
|
||||
|
||||
Revision 1.7 2003/10/27 17:12:45 marco
|
||||
|
Loading…
Reference in New Issue
Block a user