mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:23:33 +03:00
Marco G. Salvagno's OS/2 fixes
This commit is contained in:
parent
35140201b5
commit
ff3fd842d8
3 changed files with 35 additions and 2 deletions
|
|
@ -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] = '\\';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue