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/
