Fix compilation of puzzles on Windows

mingw exports vsscanf and that clashes with rbwrappers' definition.

Change-Id: I87481ff4e93547059b2e1fa8083bedcf8633343a
This commit is contained in:
Amaury Pouly 2017-01-15 17:57:31 +01:00 committed by Franklin Wei
parent 0cabc1fc51
commit 793c0411be

View file

@ -1585,13 +1585,13 @@ sscanf_wrapper(const char *ibuf, const char *fmt, ...)
int ret;
va_start(ap, fmt);
ret = vsscanf(ibuf, fmt, ap);
ret = rb_vsscanf(ibuf, fmt, ap);
va_end(ap);
return(ret);
}
int
vsscanf(const char *inp, char const *fmt0, va_list ap)
rb_vsscanf(const char *inp, char const *fmt0, va_list ap)
{
int inr;
const u_char *fmt = (const u_char *)fmt0;