[前][次][番号順一覧][スレッド一覧]

ruby-changes:29785

From: nobu <ko1@a...>
Date: Mon, 8 Jul 2013 23:23:33 +0900 (JST)
Subject: [ruby-changes:29785] nobu:r41837 (trunk): win32.c: suppress warnings

nobu	2013-07-08 23:23:24 +0900 (Mon, 08 Jul 2013)

  New Revision: 41837

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41837

  Log:
    win32.c: suppress warnings
    
    * win32/win32.c (CharNextExA): cast to suppress warnings by VC6.

  Modified files:
    trunk/win32/win32.c

Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 41836)
+++ win32/win32.c	(revision 41837)
@@ -50,6 +50,10 @@ https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L50
 #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);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]