mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 13:29:19 +02:00
* Dotted filenames for package uuid
This commit is contained in:
parent
37e637b61f
commit
e42a11fbfe
3
packages/uuid/namespaced/System.Libuuid.pp
Normal file
3
packages/uuid/namespaced/System.Libuuid.pp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
unit System.Libuuid;
|
||||||
|
{$DEFINE FPC_DOTTEDUNITS}
|
||||||
|
{$i libuuid.pp}
|
3
packages/uuid/namespaced/System.Macuuid.pp
Normal file
3
packages/uuid/namespaced/System.Macuuid.pp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
unit System.Macuuid;
|
||||||
|
{$DEFINE FPC_DOTTEDUNITS}
|
||||||
|
{$i macuuid.pp}
|
4
packages/uuid/namespaces.lst
Normal file
4
packages/uuid/namespaces.lst
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
src/macuuid.pp=namespaced/System.Macuuid.pp
|
||||||
|
{s*:src/}=namespaced/
|
||||||
|
{i+:src/}
|
||||||
|
src/libuuid.pp=namespaced/System.Libuuid.pp
|
@ -1,10 +1,16 @@
|
|||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
{$H+}
|
{$H+}
|
||||||
|
{$IFNDEF FPC_DOTTEDUNITS}
|
||||||
Unit Libuuid;
|
Unit Libuuid;
|
||||||
|
{$ENDIF FPC_DOTTEDUNITS}
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
|
{$IFDEF FPC_DOTTEDUNITS}
|
||||||
|
uses System.SysUtils,System.DynLibs;
|
||||||
|
{$ELSE FPC_DOTTEDUNITS}
|
||||||
uses SysUtils,dynlibs;
|
uses SysUtils,dynlibs;
|
||||||
|
{$ENDIF FPC_DOTTEDUNITS}
|
||||||
|
|
||||||
Var
|
Var
|
||||||
LibUUIDName : String = 'libuuid.so.1';
|
LibUUIDName : String = 'libuuid.so.1';
|
||||||
|
@ -1,17 +1,27 @@
|
|||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
{$H+}
|
{$H+}
|
||||||
|
{$IFNDEF FPC_DOTTEDUNITS}
|
||||||
unit macuuid;
|
unit macuuid;
|
||||||
|
{$ENDIF FPC_DOTTEDUNITS}
|
||||||
|
|
||||||
Interface
|
Interface
|
||||||
|
|
||||||
|
{$IFDEF FPC_DOTTEDUNITS}
|
||||||
|
uses System.SysUtils;
|
||||||
|
{$ELSE FPC_DOTTEDUNITS}
|
||||||
uses SysUtils;
|
uses SysUtils;
|
||||||
|
{$ENDIF FPC_DOTTEDUNITS}
|
||||||
|
|
||||||
Function CreateMacGUID(Out GUID : TGUID) : Integer;
|
Function CreateMacGUID(Out GUID : TGUID) : Integer;
|
||||||
|
|
||||||
|
|
||||||
Implementation
|
Implementation
|
||||||
|
|
||||||
|
{$IFDEF FPC_DOTTEDUNITS}
|
||||||
|
uses UnixApi.Types, System.Net.Sockets, UnixApi.Base, UnixApi.Unix;
|
||||||
|
{$ELSE FPC_DOTTEDUNITS}
|
||||||
uses unixtype, sockets, baseunix, unix;
|
uses unixtype, sockets, baseunix, unix;
|
||||||
|
{$ENDIF FPC_DOTTEDUNITS}
|
||||||
|
|
||||||
Const
|
Const
|
||||||
MAX_ADJUSTMENT = 10;
|
MAX_ADJUSTMENT = 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user