Windows: convert '\\' to '/' in sanitary_path_copy().
commit6b17197be450fd67d3fde7208bbb1ea0160b73f9
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 19 Feb 2008 21:15:17 +0000 (19 22:15 +0100)
committerJohannes Sixt <johannes.sixt@telecom.at>
Tue, 19 Feb 2008 21:15:17 +0000 (19 22:15 +0100)
tree9ca0f27b12826e0e4a6b769c7a8a370ad3b6184f
parent304601534df0b1eeee0865d55bb3b4da063702e3
Windows: convert '\\' to '/' in sanitary_path_copy().

sanitary_path_copy() is only used by prefix_path(). A helper function
is_dir_sep() is introduced that checks for both '/' and '\\' on Windows.
Note that the remaining checks for '/' in prefix_path() don't need to
to be converted to is_dir_sep() since they operate on the sanitized path.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
setup.c