Created attachment 554818 [details] [diff] [review]
__inout is not defined on mingw because it conflicts with GCC-provided headers. Also the test uses wmain, which is tricky to get right on mingw. Since tests don't use main arguments anyway, I've just changed it to regular main.
Thanks for the quick review!