The header file /usr/include/sys/types.h defines a macro called "howmany".

As a result, this strictly conforming program:

    #include <stdio.h>

    int howmany(void) {
        return 42;
    }

    int main(void) {
        printf("%d\n", howmany());
    }

fails to compile with "gcc -std=c11 -pedantic" (or "-std=c99", or "std=c90").

    $ uname -a
    CYGWIN_NT-10.0 IE11WIN10 2.2.1(0.289/5/3) 2015-08-20 11:42 x86_64 Cygwin
    $

-- 
Keith Thompson <[email protected]>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to