From 8307b72f747b1368899e125cddb86a213b24942d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Mon, 6 Mar 2023 14:57:59 +0100 Subject: [PATCH] * Dotted filenames for package libpng --- packages/libpng/namespaced/Api.Png.pp | 3 +++ packages/libpng/namespaces.lst | 3 +++ packages/libpng/src/png.pp | 8 ++++++++ 3 files changed, 14 insertions(+) create mode 100644 packages/libpng/namespaced/Api.Png.pp create mode 100644 packages/libpng/namespaces.lst diff --git a/packages/libpng/namespaced/Api.Png.pp b/packages/libpng/namespaced/Api.Png.pp new file mode 100644 index 0000000000..b49a64ba0d --- /dev/null +++ b/packages/libpng/namespaced/Api.Png.pp @@ -0,0 +1,3 @@ +unit Api.Png; +{$DEFINE FPC_DOTTEDUNITS} +{$i png.pp} diff --git a/packages/libpng/namespaces.lst b/packages/libpng/namespaces.lst new file mode 100644 index 0000000000..fd81d2900b --- /dev/null +++ b/packages/libpng/namespaces.lst @@ -0,0 +1,3 @@ +src/png.pp=namespaced/Api.Png.pp +{s*:src/}=namespaced/ +{i+:src/} diff --git a/packages/libpng/src/png.pp b/packages/libpng/src/png.pp index 2f6146ccac..d8916566cb 100644 --- a/packages/libpng/src/png.pp +++ b/packages/libpng/src/png.pp @@ -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}