mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-25 14:09:11 +02:00
21 lines
306 B
ObjectPascal
21 lines
306 B
ObjectPascal
{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos}
|
|
{ %needlibrary }
|
|
|
|
program ptest;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
const
|
|
{$ifdef windows}
|
|
libname='tw9089b.dll';
|
|
{$else}
|
|
libname='tw9089a';
|
|
{$linklib tw9089b}
|
|
{$endif}
|
|
|
|
function Test: Integer; cdecl; external libname;
|
|
|
|
begin
|
|
Writeln(Test);
|
|
end.
|