From d201478f852ed4d7314ecf5abbdbdc449ffa3d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Mon, 6 Mar 2023 14:58:05 +0100 Subject: [PATCH] * Dotted filenames for package libsee --- packages/libsee/namespaced/Api.Libsee.pas | 3 +++ packages/libsee/namespaces.lst | 3 +++ packages/libsee/src/libsee.pas | 12 ++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 packages/libsee/namespaced/Api.Libsee.pas create mode 100644 packages/libsee/namespaces.lst diff --git a/packages/libsee/namespaced/Api.Libsee.pas b/packages/libsee/namespaced/Api.Libsee.pas new file mode 100644 index 0000000000..60b9d88b7d --- /dev/null +++ b/packages/libsee/namespaced/Api.Libsee.pas @@ -0,0 +1,3 @@ +unit Api.Libsee; +{$DEFINE FPC_DOTTEDUNITS} +{$i libsee.pas} diff --git a/packages/libsee/namespaces.lst b/packages/libsee/namespaces.lst new file mode 100644 index 0000000000..95a7a5f909 --- /dev/null +++ b/packages/libsee/namespaces.lst @@ -0,0 +1,3 @@ +src/libsee.pas=namespaced/Api.Libsee.pas +{s*:src/}=namespaced/ +{i+:src/} diff --git a/packages/libsee/src/libsee.pas b/packages/libsee/src/libsee.pas index 31e7ddd85a..047ec35db3 100644 --- a/packages/libsee/src/libsee.pas +++ b/packages/libsee/src/libsee.pas @@ -2,11 +2,18 @@ {$mode objfpc} {$h+} +{$IFNDEF FPC_DOTTEDUNITS} unit libsee; +{$ENDIF FPC_DOTTEDUNITS} interface +{$IFDEF FPC_DOTTEDUNITS} +uses + System.CTypes; +{$ELSE FPC_DOTTEDUNITS} uses ctypes; +{$ENDIF FPC_DOTTEDUNITS} { Automatically converted by H2Pas 1.0.0 from libsee.c @@ -586,8 +593,13 @@ Function LibseeLoaded : Boolean; implementation +{$IFDEF FPC_DOTTEDUNITS} +uses + System.SysUtils, System.DynLibs; +{$ELSE FPC_DOTTEDUNITS} uses SysUtils, dynlibs; +{$ENDIF FPC_DOTTEDUNITS} {$ifndef libseehelper} function new_SEE_interpreter : PSEE_Interpreter;