diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 10:51:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-21 10:51:56 +0000 |
commit | 613d97c5253e8baa7998702c26c0ffdbf56dd3c7 (patch) | |
tree | 5f9b515a524cbc588455820bd6d7503afc90b2b5 /win32 | |
parent | 42e36319bdee85d67e03fff042663b6209b61d62 (diff) |
win32.c: symlink constants fallback
* win32/win32.c (rb_w32_wreadlink): define symlink constants for
VC6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 34995c54f6..f9191f81aa 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4647,6 +4647,17 @@ link(const char *from, const char *to) return ret; } +/* License: Public Domain, copied from mingw headers */ +#ifndef FILE_DEVICE_FILE_SYSTEM +# define FILE_DEVICE_FILE_SYSTEM 0x00000009 +#endif +#ifndef FSCTL_GET_REPARSE_POINT +# define FSCTL_GET_REPARSE_POINT ((0x9<<16)|(42<<2)) +#endif +#ifndef IO_REPARSE_TAG_SYMLINK +# define IO_REPARSE_TAG_SYMLINK 0xA000000CL +#endif + /* License: Ruby's */ ssize_t rb_w32_wreadlink(const WCHAR *path, WCHAR *buf, size_t bufsize) |