Bug #4600
closeddate/date_parse.c errors are breaking MinGW build
Description
=begin
Hello,
Recent commits to ext/date/date_parse are breaking the MinGW build. As revision 31323:
make[2]: Entering directory /c/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/ruby19_build/ext/date' generating date_core-i386-mingw32.def compiling ../../../../../../ruby/ext/date/date_core.c compiling ../../../../../../ruby/ext/date/date_parse.c ../../../../../../ruby/ext/date/date_parse.c: In function 'parse_ddd_cb': ../../../../../../ruby/ext/date/date_parse.c:1105:6: warning: implicit declaration of function 'index' ../../../../../../ruby/ext/date/date_parse.c:1105:11: warning: incompatible implicit declaration of built-in function 'index' compiling ../../../../../../ruby/ext/date/date_strftime.c compiling ../../../../../../ruby/ext/date/date_strptime.c linking shared-object date_core.so date_parse.o: In function
parse_ddd_cb':
c:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\ruby19_build\ext\date/../../../../../../ruby/ext/date/date_parse.c:1105: undefined reference to index' collect2: ld returned 1 exit status make[2]: *** [../../.ext/i386-mingw32/date_core.so] Error 1 make[2]: Leaving directory
/c/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/ruby19_build/ext/date'
make[1]: *** [ext/date/all] Error 2
=end