[ofa-general] Re: [PATCH] management: uint -> unsigned replacement

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Wed Jun 27 10:37:50 PDT 2007


On Wed, Jun 27, 2007 at 07:01:09AM -0400, Hal Rosenstock wrote:
> > (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

I'd recommend -D_POSIX_C_SOURCE=200112 as the 'highest' setting for
portable code. This sould reflect IEEE 1003.1-2004 (aka SUSv3)

Most of the XPG specific stuff is not as easy to get good
documentation on, IMHO.

Jason




More information about the general mailing list