__STRICT_ANSI__ in mingw/sys/stat.h

Jimen Ching jching@flex.com
Tue Apr 23 18:47:00 GMT 2002


I noticed the mingw/sys/stat.h header file is protected by this macro.
But sys/stat.h is not.  What this means is that if I used

gcc -ansi -pedantic tst.c

it would compile.  But if I used

gcc -ansi -pedantic -mno-cygwin tst.c

it would not.  Yet, if I used

gcc -mno-cygwin tst.c

it would work.  Is there a reason why the combination of ANSI and
-mno-cygwin should prevent something that plain -mno-cygwin would not?

Jimen Ching (WH6BRR)      jching@flex.com     wh6brr@uhm.ampr.org

Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list