transform_mjit_header.rb: fix up r65169

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-10-19 13:11:33 +00:00
Родитель 6458ae1bba
Коммит a9025c8841
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -228,11 +228,12 @@ if MJITHeader.windows? # transformation is broken with Windows headers for now
end
macro, code = MJITHeader.separate_macro_and_code(code) # note: this does not work on MinGW
code_to_check = "#{<<header}#{code}#{macro}" # macro should not affect code again
code = <<header + code
#ifdef __GNUC__
# pragma GCC system_header
#endif
header
code_to_check = "#{code}#{macro}" # macro should not affect code again
if MJITHeader.conflicting_types?(code_to_check, cc, cflags)
cflags = "#{cflags} -std=c99" # For AIX gcc