[ofa-general] Re: [PATCH] management: uint -> unsigned replacement
Hal Rosenstock
halr at voltaire.com
Wed Jun 27 04:01:09 PDT 2007
On Wed, 2007-06-27 at 01:33, Jason Gunthorpe wrote:
> On Tue, Jun 26, 2007 at 03:18:55PM -0400, Hal Rosenstock wrote:
>
> > > > > > compatibility name for C type". This type might not defined e.g. if
> > > > > > __STRICT_ANSI__ is set,
> > > > >
> > > > > Is strict ANSI a requirement ?
> > >
> > > Even if not,
> >
> > I was just trying to determine how much further we needed to go down
> > this path.
>
> As a general rule if you can compile each of your public headers files
> with:
>
> echo '#include "foo.h"' > t.c
> gcc -Wall -ansi t.c
>
> You are doing OK. What is in your private .c files isn't that
> important
That's what I wasn't sure about. Thanks.
> (and I'd advocate using -std=gnu99, but I never compile with
> VC++ :P).
>
> 'gcc -ansi -D_POSIX_SOURCE_' as a minimum is also pretty good.
How about:
gcc -Wall -D_XOPEN_SOURCE=600
-- Hal
> Jason
More information about the general
mailing list