summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-03-19 14:48:29 +0100
committerBram Moolenaar <Bram@vim.org>2013-03-19 14:48:29 +0100
commitaf62ff3696514a4f1b595629bcfa584748bc29ce (patch)
tree3cd451ad817d37bead9c136137c90267ca5c5d1c /src/os_mswin.c
parent0c279bbb9c2b9fce1c837a35ace2d4644eced0b8 (diff)
downloadvim-af62ff3696514a4f1b595629bcfa584748bc29ce.zip
updated for version 7.3.870
Problem: Compiler warnings when using MingW 4.5.3. Solution: Do not use MAKEINTRESOURCE. Adjust #if. (Ken Takata)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 7cc185453..e8000aa6b 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -184,12 +184,14 @@ char * _fullpath(char *buf, char *fname, int len)
}
# endif
+# if !defined(__MINGW32__) || (__GNUC__ < 4)
int _chdrive(int drive)
{
char temp [3] = "-:";
temp[0] = drive + 'A' - 1;
return !SetCurrentDirectory(temp);
}
+# endif
#else
# ifdef __BORLANDC__
/* being a more ANSI compliant compiler, BorlandC doesn't define _stricoll: