Wireshark-dev: [Wireshark-dev] Build failures with VS2013
From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Sat, 7 Dec 2013 16:50:10 +0000
Started testing builds with VS 2013 Pro (nmake build), complaints about redefinitions:

C:\Program Files (x86)\Windows Kits\8.1\include\um\ws2tcpip.h(531) : error C2373: 'ws_inet_pton' : redefinition; different type modifiers
        E:\Wireshark\trunk\wsutil/inet_v6defs.h(44) : see declaration of 'ws_inet_pton'
C:\Program Files (x86)\Windows Kits\8.1\include\um\ws2tcpip.h(548) : error C2373: 'ws_inet_ntop' : redefinition; different type modifiers
        E:\Wireshark\trunk\wsutil/inet_v6defs.h(46) : see declaration of 'ws_inet_ntop'

Looking at the definitions of these I can't see what's up.

The definitions from ws2tcpip.h:

#if (NTDDI_VERSION >= NTDDI_VISTA)
WINSOCK_API_LINKAGE
INT
WSAAPI
inet_pton(
    _In_                                INT             Family,
    _In_                                PCSTR           pszAddrString,
    _Out_writes_bytes_(sizeof(IN6_ADDR))      PVOID           pAddrBuf
    );

PCSTR
WSAAPI
inet_ntop(
    _In_                                INT             Family,
    _In_                                PVOID           pAddr,
    _Out_writes_(StringBufSize)         PSTR            pStringBuf,
    _In_                                size_t          StringBufSize
    );
#endif