mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 16:27:58 +02:00
* Dotted filenames for package libpng
This commit is contained in:
parent
e63ca07d64
commit
8307b72f74
3
packages/libpng/namespaced/Api.Png.pp
Normal file
3
packages/libpng/namespaced/Api.Png.pp
Normal file
@ -0,0 +1,3 @@
|
||||
unit Api.Png;
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
{$i png.pp}
|
3
packages/libpng/namespaces.lst
Normal file
3
packages/libpng/namespaces.lst
Normal file
@ -0,0 +1,3 @@
|
||||
src/png.pp=namespaced/Api.Png.pp
|
||||
{s*:src/}=namespaced/
|
||||
{i+:src/}
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user