aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-29 04:37:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-29 04:37:14 +0000
commitf37c5a08ad17b66e1abf96c9e11f1031340f4b5e (patch)
treec49b1ac0701dbc1598d5e8be725400d862358dec /win32
parentfcbf52d2fa9dde47ea13a21df05fdb237ce72fe1 (diff)
downloadruby-f37c5a08ad17b66e1abf96c9e11f1031340f4b5e.tar.gz
VC6 error
* win32/win32.c (GetSystemWindowsDirectoryW): use GetWindowsDirectoryW for VC6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 4192a19add..f3ddb9cc66 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -505,6 +505,11 @@ rb_w32_special_folder(int type)
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)