Mercurial > vim
comparison src/os_mswin.c @ 4238:26e59a39fdd9 v7.3.870
updated for version 7.3.870
Problem: Compiler warnings when using MingW 4.5.3.
Solution: Do not use MAKEINTRESOURCE. Adjust #if. (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 19 Mar 2013 14:48:29 +0100 |
parents | ff193256398a |
children | 04736b4030ec |
comparison
equal
deleted
inserted
replaced
4237:6b0aa05d4e7a | 4238:26e59a39fdd9 |
---|---|
182 | 182 |
183 return (char *)GetFullPathName(fname, len, buf, &toss); | 183 return (char *)GetFullPathName(fname, len, buf, &toss); |
184 } | 184 } |
185 # endif | 185 # endif |
186 | 186 |
187 # if !defined(__MINGW32__) || (__GNUC__ < 4) | |
187 int _chdrive(int drive) | 188 int _chdrive(int drive) |
188 { | 189 { |
189 char temp [3] = "-:"; | 190 char temp [3] = "-:"; |
190 temp[0] = drive + 'A' - 1; | 191 temp[0] = drive + 'A' - 1; |
191 return !SetCurrentDirectory(temp); | 192 return !SetCurrentDirectory(temp); |
192 } | 193 } |
194 # endif | |
193 #else | 195 #else |
194 # ifdef __BORLANDC__ | 196 # ifdef __BORLANDC__ |
195 /* being a more ANSI compliant compiler, BorlandC doesn't define _stricoll: | 197 /* being a more ANSI compliant compiler, BorlandC doesn't define _stricoll: |
196 * but it does in BC 5.02! */ | 198 * but it does in BC 5.02! */ |
197 # if __BORLANDC__ < 0x502 | 199 # if __BORLANDC__ < 0x502 |