1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Silence stat redefinition warnings under win32

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
luislavena 2011-12-08 23:00:36 +00:00
parent b8b5f5d437
commit ef9bbba96f
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Dec 9 08:00:15 2011 Luis Lavena <luislavena@gmail.com>
* 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 <nagachika00@gmail.com>
* variable.c (set_const_visibility): clear inine-cache when constant's

View file

@ -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)