Bug #3615
closedBuild failure trunk with MSVC
Description
=begin
After applying r28754, I still cannot build with MSVC.
I guess r28727 is the cause of error.
C:\work\snapshot>nmake
Microsoft(R) Program Maintenance Utility Version 9.00.30729.01
Copyright (c) Microsoft Corporation. All rights reserved.
cl -nologo -MD -Zi -W2 -wd4996 -O2sy- -Zm600 -DRUBY_EXPORT -I. -I.ext/i
nclude/i386-mswin32_90 -I./include -I. -I./missing -Fomain.obj -c -Tcmain.c
main.c
cl -nologo -MD -Zi -W2 -wd4996 -O2sy- -Zm600 -DRUBY_EXPORT -I. -I.ext/i
nclude/i386-mswin32_90 -I./include -I. -I./missing -Fodmydln.obj -c -Tcdmydln.c
dmydln.c
C:\work\snapshot.ext\include\i386-mswin32_90\ruby/config.h(41) : warning C4005: 'RUBY_EXTERN' : macro redefinition
c:\work\snapshot\include\ruby\defines.h(240) : see previous definition of 'RUBY_EXTERN'
cl -nologo -MD -Zi -W2 -wd4996 -O2sy- -Zm600 -DRUBY_EXPORT -I. -I.ext/i
nclude/i386-mswin32_90 -I./include -I. -I./missing -Fodmyencoding.obj -c -Tc
dmyencoding.c
dmyencoding.c
C:\work\snapshot.ext\include\i386-mswin32_90\ruby/config.h(41) : warning C4005: 'RUBY_EXTERN' : macro redefinition
c:\work\snapshot\include\ruby\defines.h(240) : see previous definition of 'RUBY_EXTERN'
C:\work\snapshot\include\ruby/encoding.h(211) : error C2370: 'rb_cEncoding' : redefinition; different storage class
C:\work\snapshot\include\ruby/ruby.h(1217) : see previous definition of 'rb_cEncoding'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
=end