[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 := '/';
{$ENDIF}
{$IFDEF WIN32}
Slash := '\';
{$ENDIF}
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?
-Alan
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
More information about the fpc-pascal
mailing list