[fpc-pascal]Conditional compilation ELSE-IF?

Alan Mead cubrewer at yahoo.com
Thu Apr 8 15:24:14 CEST 2004

I have the following code in a function:

      {$IFDEF LINUX}
      Slash := '/';
      {$IFDEF WIN32}
      Slash := '\';

Obviously, FPC supports many other platforms.  Is there a better way
to handle this?  Also, will this work if I ever cross-compile? Is
there a way to detect this at run-time rather than compile time?


Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 

More information about the fpc-pascal mailing list