Re: Object naming conflict on nt branch

From: Robert Collins <robertc@dont-contact.us>
Date: 09 Mar 2003 22:25:04 +1100

On Sun, 2003-03-09 at 21:33, Guido Serassio wrote:
> Hi,
>
> I'have just discovered an object naming conflict on nt branch:
>
> Windows include file wtypes.h defines this:
>
> typedef struct _ACL
> {
> UCHAR AclRevision;
> UCHAR Sbz1;
> USHORT AclSize;
> USHORT AceCount;
> USHORT Sbz2;
> } ACL;
>
> typedef ACL *PACL;
>
> that is conflicting with "ACL" used in Squid.
>
> This happens on all Windows build environments: Cygwin, MinGW and MS Visual
> Studio.

Dang. It's just *so hard* with MS polluting the namescape all the time.

If we don't use the windows ACL type, just do this:

#define ACL WindowsACL
#include <windows.h>
#undef ACL

Cheers,
Rob

-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.

Received on Sun Mar 09 2003 - 04:25:11 MST

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