From ef9bbba96f41d94c125460d4ca6a293996b8c09b Mon Sep 17 00:00:00 2001 From: luislavena Date: Thu, 8 Dec 2011 23:00:36 +0000 Subject: [PATCH] Silence stat redefinition warnings under win32 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ include/ruby/win32.h | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 84525843fa..825099718a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 9 08:00:15 2011 Luis Lavena + + * include/ruby/win32.h: undef stat to silence mingw-w64 stat + redefinition warnings (GCC 4.6.3). + Thu Dec 8 23:38:24 2011 CHIKANAGA Tomoyuki * variable.c (set_const_visibility): clear inine-cache when constant's diff --git a/include/ruby/win32.h b/include/ruby/win32.h index ea6d3939d0..83da87a45a 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -126,6 +126,7 @@ extern DWORD rb_w32_osid(void); #undef fputchar #undef utime #undef lseek +#undef stat #undef fstat #define getc(_stream) rb_w32_getc(_stream) #define getchar() rb_w32_getc(stdin)