index 3e453b1bab7c1a0b2a2a3a9b91714434b19542ea..c8ad676fcd912155a3f3e5f594e7ea32059bd08a 100644 (file)
-{$DEFINE LIBMINIUPNPC_WINDOZE_STATIC}
+{.$DEFINE LIBMINIUPNPC_WINDOZE_STATIC}
{$MODE OBJFPC}
{$PACKRECORDS C}
{$MODE OBJFPC}
{$PACKRECORDS C}
{$DEFINE MINIUPNPC_IMPL := cdecl; external 'miniupnpc.dll'}
{$ENDIF}
{$ELSE}
{$DEFINE MINIUPNPC_IMPL := cdecl; external 'miniupnpc.dll'}
{$ENDIF}
{$ELSE}
- {$DEFINE MINIUPNPC_IMPL := cdecl; external 'miniupnpc'}
+ {$LINKLIB libminiupnpc}
+ {$DEFINE MINIUPNPC_IMPL := cdecl; external 'libminiupnpc'}
{$ENDIF}
const MINIUPNPC_URL_MAXSIZE=128;
{$ENDIF}
const MINIUPNPC_URL_MAXSIZE=128;
minissdpdsock:pchar;
sameport:integer;
IPV6:integer;
minissdpdsock:pchar;
sameport:integer;
IPV6:integer;
+ ttl:shortint;
error:pinteger):PUPNPDev; MINIUPNPC_IMPL;
error:pinteger):PUPNPDev; MINIUPNPC_IMPL;