Florian Klaempfl a écrit :
Marcel Martin wrote:
Hello,
I need to know *at compile time* whether the type Real is
Single or Double. Currently, I use this
{$IFDEF FPC_HAS_TYPE_DOUBLE}
...
{$ELSE}
{$IFDEF FPC_HAS_TYPE_SINGLE}
...
{$ELSE}
{$FATAL Type Real should be defined as Single or as Doubl
On Mon, 11 Jul 2005, Thomas Zastrow wrote:
Hello,
how can I test - at runtime - under which OS (Linux, Windows and so on) a
FPC-program is running?
Try
Var
ThisOS : String;
begin
ThisOS := {$I %FPCTARGET%};
results in a string of the form i386-linux or i386-win32.
Michael.
_
Hello,
how can I test - at runtime - under which OS (Linux, Windows and so on)
a FPC-program is running?
Greetings,
Tom
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal