ruby-changes:31504
From: nobu <ko1@a...>
Date: Sat, 9 Nov 2013 00:27:05 +0900 (JST)
Subject: [ruby-changes:31504] nobu:r43583 (trunk): file.c: remove unnecessary declaration
nobu 2013-11-09 00:26:55 +0900 (Sat, 09 Nov 2013) New Revision: 43583 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43583 Log: file.c: remove unnecessary declaration * file.c (GetLastError): already defined in windows.h on nowadays cygwin, and caused the confliction with the system provided definition on cygwin64. by @kou1okada [Fixes GH-433]. Modified files: trunk/ChangeLog trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43582) +++ ChangeLog (revision 43583) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Nov 9 00:26:50 2013 Nobuyoshi Nakada <nobu@r...> + + * file.c (GetLastError): already defined in windows.h on nowadays + cygwin, and caused the confliction with the system provided + definition on cygwin64. by @kou1okada [Fixes GH-433]. + Fri Nov 8 18:35:31 2013 Masaki Matsushita <glass.saga@g...> * lib/open3.rb: receive arguments as keyword arguments. Index: file.c =================================================================== --- file.c (revision 43582) +++ file.c (revision 43583) @@ -4302,7 +4302,6 @@ rb_file_truncate(VALUE obj, VALUE len) https://github.com/ruby/ruby/blob/trunk/file.c#L4302 #ifdef __CYGWIN__ #include <winerror.h> -extern unsigned long __attribute__((stdcall)) GetLastError(void); #endif static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/