Marco G. Salvagno's OS/2 fixes

This commit is contained in:
Daniel Stenberg 2000-03-19 19:54:13 +00:00
parent 35140201b5
commit ff3fd842d8
3 changed files with 35 additions and 2 deletions

View file

@ -118,10 +118,10 @@ UrgError file(struct UrlData *data, char *path, long *bytecountp)
int fd;
char *actual_path = curl_unescape(path);
#ifdef WIN32
#if defined(WIN32) || defined(__EMX__)
int i;
/* change path separators from '/' to '\\' for Windows */
/* change path separators from '/' to '\\' for Windows and OS/2 */
for (i=0; actual_path[i] != '\0'; ++i)
if (actual_path[i] == '/')
actual_path[i] = '\\';