Subject: | Cannot build on MSVC |
There are at least a couple of issues:
1. "inline" is not well supported by MSVC. At this line https://metacpan.org/source/REHSACK/List-MoreUtils-XS-0.422/XS.xs#L599 it would report error like "C2054: expected '(' to follow 'inline'"
The solution can be using __inline for MSVC, like
#ifdef _MSC_VER
# define inline __inline
#endif
2. "Statement Expression" is an extension of gcc, and is not supported by MSVC. At this line https://metacpan.org/source/REHSACK/List-MoreUtils-XS-0.422/XS.xs#L646 I get error like "C2059: syntax error: '{'"
btw, I don't know very much perlapi, but why is the CMP macro defined in this way and how does it compare x and y? See https://metacpan.org/source/REHSACK/List-MoreUtils-XS-0.422/XS.xs#L621