[fpc-pascal] RE: Which OS?

Jeff Pohlmeyer yetanothergeek at gmail.com
Tue Jul 12 13:07:42 CEST 2005


> how can I test - at runtime - under which OS (Linux, Windows and so on) 
> a FPC-program is running?

  {$IFDEF unix}
     http://www.freepascal.org/docs-html/rtl/baseunix/fpuname.html
  {$ELSE}
    {IFDEF WIN32}
      http://msdn.microsoft.com/library/en-us/sysinfo/base/getversionex.asp
    {$ENDIF}
  {$ENDIF}




More information about the fpc-pascal mailing list