Wireshark mailing list archives
Re: Build failures with VS2013
From: Jakub Zawadzki <darkjames-ws () darkjames pl>
Date: Sat, 7 Dec 2013 18:06:44 +0100
On Sat, Dec 07, 2013 at 04:50:10PM +0000, Graham Bloice wrote:
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.
I think it's about const in our prototypes / not-const in windows one.
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
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Build failures with VS2013 Graham Bloice (Dec 07)
- Re: Build failures with VS2013 Jakub Zawadzki (Dec 07)
- Re: Build failures with VS2013 Graham Bloice (Dec 07)
- Re: Build failures with VS2013 Graham Bloice (Dec 08)
- Re: Build failures with VS2013 Graham Bloice (Dec 07)
- Re: Build failures with VS2013 Jakub Zawadzki (Dec 07)
