skydive
Joined: 30 Nov 2014 Posts: 1 Location: Paris
|
Posted: Sun Nov 30, 2014 9:58 am Post subject: miniupnpc-1.9.20141128 windows native compile |
|
|
Hi,
I just did a native windows build (with free M$ tools, VC++ Express) of latest miniupnpc sources (1.9.20141128). In order to get a successful build, I had to replace line 837 of file miniupnpc.c by :
#if defined(IF_NAMESIZE) && !defined(_WIN32)
You are also missing the following part of code in file upnpc.c just before final return retcode; at the end :
#ifdef _WIN32
{
int nResult = WSACleanup();
if (nResult != NO_ERROR)
{
fprintf(stderr, "WSACleanup() failed.\n");
}
}
#endif |
|