< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
They have
#if(_WIN32_WINNT >= 0x0501) just before the entry for
IPPROTO_IPV6 in the version of ws2def.h that I've got, so nope, it isn't always in the enum.
I've changed compat.hxx to the following in my local copy to make things work -- note that this is slightly different from what I proposed originally, since there actually are places that check the value of IPPROTO_IPV6
(not just an #ifdef test), and it picks up the definition from the #define instead of the enum:
#ifdef USE_IPV6#if (_WIN32_WINNT >= 0x0501)#define IPPROTO_IPV6 ::IPPROTO_IPV6#else #ifdef _MSC_VER #define __STR2__(x) #x #define __STR1__(x) __STR2__(x) #define __LOC__ __FILE__ "("__STR1__(__LINE__)"): " #pragma message (__LOC__ " IPv6 support requested, but IPPROTO_V6 undefined; this platform does not appear to support IPv6 ") #else #warning IPv6 support requested, but IPPROTO_IPV6 undefined; this platform does not appear to support IPv6 #endif #undef USE_IPV6 #endif #endif
Jeremy
From: Byron Campen [bcampen@xxxxxxxxxxxx] Sent: April 23, 2009 9:02 AM To: Jeremy Geras Cc: Scott Godin; resiprocate-devel@xxxxxxxxxxxxxxxxxxxx Subject: Re: [reSIProcate] compat.hxx broken for IPPROTO_IPV6 Ick. What an irritating thing to do. Presumably, this is in the enum whether or not V6 is actually supported? Or is V6 always supported in this SDK?
Best regards,
Byron Campen
|