* Dotted filenames for package libenet

This commit is contained in:
Michaël Van Canneyt 2023-03-06 14:57:58 +01:00
parent 8058aaad9c
commit e6e5c1724d
5 changed files with 29 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,4 @@
src/uenetclass.pp=namespaced/Api.Uenetclass.pp
{s*:src/}=namespaced/
{i+:src/}
src/enet.pp=namespaced/Api.Enet.pp

View File

@ -4,7 +4,9 @@
{$LONGSTRINGS ON}
{$MACRO ON}
{$IFNDEF FPC_DOTTEDUNITS}
unit ENet;
{$ENDIF FPC_DOTTEDUNITS}
{
ENet - Reliable UDP networking library
@ -35,6 +37,15 @@ unit ENet;
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.CTypes,
{$IFDEF Windows}
WinApi.Winsock2;
{$ELSE}
UnixApi.Base, System.Net.Sockets;
{$ENDIF}
{$ELSE FPC_DOTTEDUNITS}
uses
ctypes,
{$IFDEF WINDOWS}
@ -42,6 +53,7 @@ uses
{$ELSE}
BaseUnix, Sockets;
{$ENDIF}
{$ENDIF FPC_DOTTEDUNITS}
////////////////////////////////////////////////////////////////////////////////
// types.h

View File

@ -1,7 +1,9 @@
{$MODE OBJFPC}
{$LONGSTRINGS ON}
{$IFNDEF FPC_DOTTEDUNITS}
unit UENetClass;
{$ENDIF FPC_DOTTEDUNITS}
{
ENet UDP Class for Free Pascal
@ -33,8 +35,13 @@ unit UENetClass;
interface
{$IFDEF FPC_DOTTEDUNITS}
uses
System.SysUtils, System.Classes, Api.Enet;
{$ELSE FPC_DOTTEDUNITS}
uses
SysUtils, Classes, ENet;
{$ENDIF FPC_DOTTEDUNITS}
type
TENetEventType = ( ENetEventNone, ENetEventConnect, ENetEventDisconnect,