Re: [fpc-pascal] Single or Double

2005-07-11 Thread Marcel Martin
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

Re: [fpc-pascal] Which OS?

2005-07-11 Thread Michael Van Canneyt
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. _

[fpc-pascal] Which OS?

2005-07-11 Thread Thomas Zastrow
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