* Dotted filenames for package pthreads

This commit is contained in:
Michaël Van Canneyt 2023-03-06 14:58:01 +01:00
parent 81c6474e9f
commit 359e551c7f
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,3 @@
unit UnixApi.Pthreads;
{$DEFINE FPC_DOTTEDUNITS}
{$i pthreads.pp}

View File

@ -0,0 +1,3 @@
src/pthreads.pp=namespaced/UnixApi.Pthreads.pp
{s*:src/}=namespaced/
{i+:src/}

View File

@ -13,7 +13,9 @@
**********************************************************************}
{$IFNDEF FPC_DOTTEDUNITS}
unit pthreads;
{$ENDIF FPC_DOTTEDUNITS}
interface
@ -21,26 +23,50 @@ interface
{$PACKRECORDS C}
{$if defined(BSD)}
{$IFDEF FPC_DOTTEDUNITS}
uses System.InitC,UnixApi.Base, UnixApi.Types;
{$ELSE FPC_DOTTEDUNITS}
uses initc,BaseUnix, unixtype;
{$ENDIF FPC_DOTTEDUNITS}
{$i pthrbsd.inc}
{$elseif defined(android)}
{$IFDEF FPC_DOTTEDUNITS}
uses System.InitC, System.CTypes, UnixApi.Types;
{$ELSE FPC_DOTTEDUNITS}
uses initc, ctypes, unixtype;
{$ENDIF FPC_DOTTEDUNITS}
{$i pthrandroid.inc}
{$elseif defined(linux)}
{$IFDEF FPC_DOTTEDUNITS}
uses System.InitC, System.CTypes, UnixApi.Types;
{$ELSE FPC_DOTTEDUNITS}
uses initc, ctypes, unixtype;
{$ENDIF FPC_DOTTEDUNITS}
{$i pthrlinux.inc}
{$elseif defined(sunos)}
{$IFDEF FPC_DOTTEDUNITS}
uses System.InitC, System.CTypes, UnixApi.Types;
{$ELSE FPC_DOTTEDUNITS}
uses initc, ctypes, unixtype;
{$ENDIF FPC_DOTTEDUNITS}
{$i pthrsnos.inc}
{$elseif defined(beos)}
{$IFDEF FPC_DOTTEDUNITS}
uses System.InitC, System.CTypes, UnixApi.Base, UnixApi.Types;
{$ELSE FPC_DOTTEDUNITS}
uses initc, ctypes, baseunix, unixtype;
{$ENDIF FPC_DOTTEDUNITS}
{$ifdef haiku}
{$i pthrhaiku.inc}
{$else}
{$i pthrbeos.inc}
{$endif}
{$elseif defined(aix)}
{$IFDEF FPC_DOTTEDUNITS}
uses System.InitC, System.CTypes, UnixApi.Base, UnixApi.Types;
{$ELSE FPC_DOTTEDUNITS}
uses initc, ctypes, baseunix, unixtype;
{$ENDIF FPC_DOTTEDUNITS}
{$i pthraix.inc}
{$else}
{$error operating system not detected}
@ -48,4 +74,4 @@ interface
implementation
end.
end.