From 0a1e002ca48277401b565abf97eec04fb5866d3a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 14 Mar 2001 08:28:19 +0000 Subject: =?UTF-8?q?J=F6rn=20fixed=20it=20to=20compile=20on=20win32=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/file.c b/lib/file.c index f04b1e65e..516659662 100644 --- a/lib/file.c +++ b/lib/file.c @@ -97,6 +97,9 @@ CURLcode Curl_file_connect(struct connectdata *conn) char *actual_path = curl_unescape(conn->path, 0); struct FILE *file; int fd; +#if defined(WIN32) || defined(__EMX__) + int i; +#endif file = (struct FILE *)malloc(sizeof(struct FILE)); if(!file) @@ -106,8 +109,6 @@ CURLcode Curl_file_connect(struct connectdata *conn) conn->proto.file = file; #if defined(WIN32) || defined(__EMX__) - int i; - /* change path separators from '/' to '\\' for Windows and OS/2 */ for (i=0; actual_path[i] != '\0'; ++i) if (actual_path[i] == '/') -- cgit v1.2.3