Explorar o código

* Dotted filenames for package wasmtime

Michaël Van Canneyt %!s(int64=2) %!d(string=hai) anos
pai
achega
08c8e0ec66

+ 3 - 0
packages/wasmtime/namespaced/Api.WasmTime.pp

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

+ 3 - 0
packages/wasmtime/namespaces.lst

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

+ 12 - 0
packages/wasmtime/src/wasmtime.pp

@@ -15,11 +15,18 @@
 **********************************************************************}
 **********************************************************************}
 
 
 {$mode objfpc}
 {$mode objfpc}
+{$IFNDEF FPC_DOTTEDUNITS}
 unit wasmtime;
 unit wasmtime;
+{$ENDIF FPC_DOTTEDUNITS}
 interface
 interface
 
 
+{$IFDEF FPC_DOTTEDUNITS}
+uses
+  System.CTypes;
+{$ELSE FPC_DOTTEDUNITS}
 uses
 uses
   ctypes;
   ctypes;
+{$ENDIF FPC_DOTTEDUNITS}
 
 
 {
 {
   Automatically converted by H2Pas 1.0.0 from wt.h
   Automatically converted by H2Pas 1.0.0 from wt.h
@@ -960,8 +967,13 @@ function WasmTimeLoaded : Boolean;
 
 
 implementation
 implementation
 
 
+{$IFDEF FPC_DOTTEDUNITS}
+uses
+  System.SysUtils, System.DynLibs;
+{$ELSE FPC_DOTTEDUNITS}
 uses
 uses
   SysUtils, dynlibs;
   SysUtils, dynlibs;
+{$ENDIF FPC_DOTTEDUNITS}
 
 
 { Converted static functions }
 { Converted static functions }