Re: SNMP compile collision on Windows

From: Robert Collins <robertc@dont-contact.us>
Date: 15 Sep 2002 16:01:59 +1000

On Sun, 2002-09-15 at 05:03, Guido Serassio wrote:
> Hi Henrik,
>
> Compiling SNMP on Windows there is a collision on the OPAQUE and OPTIONAL
> defines in snmplib/parse.c.
>
> I have found two solutions for this:
>
> 1 - add the following code at the bottom of parse.c:
>
> #ifdef _SQUID_MSWIN_
> #undef OPAQUE
> #undef OPTIONAL
> #endif
>
> 2 - Rename OPAQUE and OPTIONAL as SNMP_OPAQUE and SNMP_OPTIONAL, as in the
> attached patch file.
>
> What is Your opinion about ?

I've committed your patch. Thanks.

Adrian: re renaming all the constants, sure, but why worry at this
point? Ain't broken, ain't changing...

Rob

Received on Sun Sep 15 2002 - 00:01:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:32 MST