Fixes for compilation under Windows (specifically MSVC). Also added MSVC supported "_inline", and fixed some WIN32 specific warnings.

This commit is contained in:
Iain Denniston
2011-03-18 12:35:19 +00:00
committed by Marcelo Roberto Jimenez
parent fed316ff3e
commit 92ea719804
15 changed files with 59 additions and 28 deletions

View File

@@ -52,7 +52,10 @@
#include <time.h>
#ifdef WIN32
#include "inet_pton.h"
#ifndef UPNP_USE_MSVCPP
/* VC Winsocks2 includes these functions */
#include "inet_pton.h"
#endif
#else
#include <netdb.h> /* for struct addrinfo */
#endif