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;