IPv6 and MSVC-2017

Gisle Vanem via Net-snmp-coders <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
Hello list.

Just subscribed; my first message on the Net-SNMP list in
several years.

It's been > 3 years since I've compiled using MinGW.
Now I'm sticking more to clang-cl and MSVC and notice
the support for MSVC wrt. to IPv6 is in a real (excuse my
French) shitty state. E.g. the '{ }' syntax is not allowed
on MSVC:
   #if defined(HAVE_WINSOCK_H) && !defined(mingw32)
   static const struct in6_addr in6addr_any = { } /*IN6ADDR_ANY_INIT*/;
   #endif

But shouldn't it instead be:
   #if defined(HAVE_WINSOCK_H) && !defined(HAVE_WINSOCK2_H) && !defined(mingw32)
   static const struct in6_addr in6addr_any = { } /*IN6ADDR_ANY_INIT*/;
   #endif

since 'in6addr_any' etc. is already part of Winsock2?

And BTW, what's up with the cryptic 'mingw32' in there?

The same goes for snmpIPv6BaseDomain.c.


-- 
--gv

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.