On Sun, Sep 08, 2002 at 11:50:17PM -0400, Garrett Wollman wrote:
> GCC used to define a macro __STRICT_ANSI__ when `-ansi' was given on
> the command line.  The current version does not do this,

It seems to work for me:

    $ cat foo.c
    #ifdef __STRICT_ANSI__
    #error __STRICT_ANSI__
    #endif
    $ /usr/bin/cc -ansi foo.c
    foo.c:2:2: #error __STRICT_ANSI__

The problem is it is also set for this:

    $ /usr/bin/cc -std=c99 foo.c
    foo.c:2:2: #error __STRICT_ANSI__

As you mentioned, this is now not a good test to decide if 'long long' is
supported.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to