* Dotted filenames for package libpng

This commit is contained in:
Michaël Van Canneyt 2023-03-06 14:57:59 +01:00
parent e63ca07d64
commit 8307b72f74
3 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
unit Api.Png;
{$DEFINE FPC_DOTTEDUNITS}
{$i png.pp}

View File

@ -0,0 +1,3 @@
src/png.pp=namespaced/Api.Png.pp
{s*:src/}=namespaced/
{i+:src/}

View File

@ -1,7 +1,9 @@
{$ifndef NO_SMART_LINK}
{$smartlink on}
{$endif}
{$IFNDEF FPC_DOTTEDUNITS}
unit PNG;
{$ENDIF FPC_DOTTEDUNITS}
interface
@ -12,9 +14,15 @@ interface
{$PACKRECORDS C}
{$IFDEF FPC_DOTTEDUNITS}
uses
System.CTypes,
Api.Z;
{$ELSE FPC_DOTTEDUNITS}
uses
ctypes,
zlib;
{$ENDIF FPC_DOTTEDUNITS}
Const
{$ifdef windows}