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

ruby-changes:39233

From: nobu <ko1@a...>
Date: Tue, 21 Jul 2015 19:52:02 +0900 (JST)
Subject: [ruby-changes:39233] nobu:r51314 (trunk): win32.c: symlink constants fallback

nobu	2015-07-21 19:51:56 +0900 (Tue, 21 Jul 2015)

  New Revision: 51314

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

  Log:
    win32.c: symlink constants fallback
    
    * win32/win32.c (rb_w32_wreadlink): define symlink constants for
      VC6.

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 51313)
+++ win32/win32.c	(revision 51314)
@@ -4647,6 +4647,17 @@ link(const char *from, const char *to) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L4647
     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)

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

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