* make_native_path - on WIN32, change / to \ in the path * * This effectively undoes canonicalize_path. * * This is required because WIN32 COPY is an internal CMD.EXE * command and doesn't process forward slashes in the same way * as external commands. Quoting the first argument to COPY * does not convert forward to backward slashes, but COPY does * properly process quoted forward slashes
| 163 | * of the first argument. |
| 164 | */ |
| 165 | void |
| 166 | make_native_path(char *filename) |
| 167 | { |
| 168 | #ifdef WIN32 |
| 169 | char *p; |
| 170 | |
| 171 | for (p = filename; *p; p++) |
| 172 | if (*p == '/') |
| 173 | *p = '\\'; |
| 174 | #endif |
| 175 | } |
| 176 | |
| 177 | |
| 178 | /* |
no outgoing calls
no test coverage detected