From f9e1c078ba706327dde901d850f8df98f70addd9 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Jul 2013 14:23:24 +0000 Subject: [PATCH] win32.c: suppress warnings * win32/win32.c (CharNextExA): cast to suppress warnings by VC6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win32/win32.c b/win32/win32.c index ca834c9f5a..34bd15eb26 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -50,6 +50,10 @@ #include "win32/dir.h" #define isdirsep(x) ((x) == '/' || (x) == '\\') +#if defined _MSC_VER && _MSC_VER <= 1200 +# define CharNextExA(cp, p, flags) CharNextExA((WORD)(cp), (p), (flags)) +#endif + static int w32_stati64(const char *path, struct stati64 *st, UINT cp); static char *w32_getenv(const char *name, UINT cp);