Jerry Dodge
Jerry Dodge

Reputation: 27276

How to handle compiler warning "IncludeTrailingBackslash is specific to a platform"?

When compiling my application, there is a compiler warning:

[DCC Warning] ... W1002 Symbol 'IncludeTrailingBackslash' is specific to a platform

How do I avoid this warning?

Upvotes: 6

Views: 4667

Answers (2)

alzaimar
alzaimar

Reputation: 4622

To avoid the warning, turn it off in the config dialog. This turns off all other plattform specific warnings as well, which might be helpfull, as you are not going to develop Linux-Apps anyway, I assume.

To get around the warning, use another function (IncludeTrailingPathDelimiter) as you suggested.

Upvotes: 3

Jerry Dodge
Jerry Dodge

Reputation: 27276

Delphi XE2 has another function IncludeTrailingPathDelimiter which can be used in place of IncludeTrailingBackslash. This function is supported on any platform that Delphi supports.

Upvotes: 15

Related Questions