[fpc-pascal] TItimerSpec
Tomas Hajny
XHajT03 at mbox.vol.cz
Fri Aug 14 19:16:13 CEST 2009
On Fri, August 14, 2009 10:26, luca_manganelli at comune.trento.it wrote:
Hi,
> I am trying to port a delphi source code to FPC on a 64 bit system.
>
> In the delphi code there's a TITimerSpec variable declaration. I found it
> in:
>
> manganelll at grass2:/usr/share/fpcsrc/2.2.2/packages$ fgrep -R -i
> "titimerspec" *
>
> libc/src/timeh.inc: TITimerSpec = itimerspec;
>
> so it's declared somewhere, but I cannot use it:
>
> manganelll at grass2:~/projects/mapaccel/linux$ fpc NativeTimer.pas
> Free Pascal Compiler version 2.2.2-8 [2009/01/08] for x86_64
> Copyright (c) 1993-2008 by Florian Klaempfl
> Target OS: Linux for x86-64
> Compiling NativeTimer.pas
> NativeTimer.pas(73,37) Error: Identifier not found "TITimerSpec"
See FAQ - this is part of unit libc, which is a Kylix compatibility unit
only provided for i386-linux target. The associated base type seems to be
provided in unit unixtype, so if necessary, you can redefine this for your
purposes (based on the declaration in timeh.inc). Obviously, the more
important question would be whether the type definition would be
sufficient for your porting efforts, or whether there are other problems
anyway which may lead to using other (native) types instead.
Tomas
More information about the fpc-pascal
mailing list