This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: w32api compiler warning fix.
- To: CP List <Cygwin-Patches at Cygwin dot Com>, Robert Collins <robert dot collins at itdomain dot com dot au>
- Subject: Re: w32api compiler warning fix.
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Date: Fri, 9 Nov 2001 07:50:20 +1100 (EST)
- Cc: Corinna Vinschen <cygwin-patches at cygwin dot com>
--- Earnie Boyd <earnie_boyd@yahoo.com> wrote: > Robert Collins wrote:
>
> > > -----Original Message-----
> > > From: Corinna Vinschen [mailto:cygwin-patches@cygwin.com]
> > > > What about this instead?
> > >
> > > The problem is that the definition doesn't match the MS definition.
> > > I would prefer to have the headers as close to the MS definitions
> > > as possible.
> >
> > I'm cool either way - Earnie?
>
> I'm going to defer to Danny. I myself only agree with Corinna's argument
> in that if it can be found to be documented that way then that's how it
> should be coded.
>
I think its "just" a preprocessor issue. This is how I would do it (Like
the _TEXT macros):
#define SECURITY_NULL_SID_AUTHORITY_VALUE {0,0,0,0,0,0}
#define SECURITY_WORLD_SID_AUTHORITY_VALUE {0,0,0,0,0,1}
#define SECURITY_LOCAL_SID_AUTHORITY_VALUE {0,0,0,0,0,2}
#define SECURITY_CREATOR_SID_AUTHORITY_VALUE {0,0,0,0,0,3}
#define SECURITY_NON_UNIQUE_AUTHORITY_VALUE {0,0,0,0,0,4}
#define SECURITY_NULL_SID_AUTHORITY {SECURITY_NULL_SID_AUTHORITY_VALUE}
#define SECURITY_WORLD_SID_AUTHORITY {SECURITY_WORLD_SID_AUTHORITY_VALUE}
#define SECURITY_LOCAL_SID_AUTHORITY {SECURITY_LOCAL_SID_AUTHORITY_VALUE}
#define SECURITY_CREATOR_SID_AUTHORITY
{SECURITY_CREATOR_SID_AUTHORITY_VALUE}
#define SECURITY_NON_UNIQUE_AUTHORITY {SECURITY_NON_UNIQUE_AUTHORITY_VALUE}
> --
> Earnie.
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Manage your files online.