Silence pedantic warnings at header file level

Danny Smith danny_r_smith_2001@yahoo.co.nz
Tue Mar 5 00:16:00 GMT 2002


 --- Robert Collins <robert.collins@itdomain.com.au> wrote: > Would this
also fix the 'is not a prototype' error that cinstall
> experiences?
> 
> Rob
> 
Compiling  w32api/lib/test.c with 
gcc -I../include -Wall  -Wstrict-prototypes -Wmissing-prototypes -pedantic 
test.c >err.log 
does not give that warning after installing the patch to w32api headers.

<snip>
Chris, the reason I did this
> > #if defined __GNUC__ && __GNUC__ >= 3

 is beacuse I've seen this test so often lately
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
and its stuck in my head

Also, the w32api headers are being used by Open Watcom (or whatever its
called) folk and I don't know anything about there preprocessor.

Danny


http://movies.yahoo.com.au - Yahoo! Movies
- Vote for your nominees in our online Oscars pool.



More information about the Cygwin-patches mailing list