ruby-changes:43461
From: nobu <ko1@a...>
Date: Wed, 29 Jun 2016 13:37:23 +0900 (JST)
Subject: [ruby-changes:43461] nobu:r55535 (trunk): VC6 error
nobu 2016-06-29 13:37:14 +0900 (Wed, 29 Jun 2016) New Revision: 55535 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55535 Log: VC6 error * win32/win32.c (GetSystemWindowsDirectoryW): use GetWindowsDirectoryW for VC6. Modified files: trunk/win32/win32.c Index: win32/win32.c =================================================================== --- win32/win32.c (revision 55534) +++ win32/win32.c (revision 55535) @@ -505,6 +505,11 @@ rb_w32_special_folder(int type) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L505 return rb_w32_conv_from_wchar(path, rb_filesystem_encoding()); } +#if defined _MSC_VER && _MSC_VER <= 1200 +/* License: Ruby's */ +#define GetSystemWindowsDirectoryW GetWindowsDirectoryW +#endif + /* License: Ruby's */ UINT rb_w32_system_tmpdir(WCHAR *path, UINT len) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/