summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-08 14:23:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-08 14:23:24 +0000
commitf9e1c078ba706327dde901d850f8df98f70addd9 (patch)
tree0af3950c6fcbd955aea905619e36dc379eb239d7 /win32
parent3d7fa44b05482818a954e04dfb6e5311e1b790b8 (diff)
downloadruby-f9e1c078ba706327dde901d850f8df98f70addd9.tar.gz
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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
1 files changed, 4 insertions, 0 deletions
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);