Checking __STDC_VERSION__ rather than __STRICT_ANSI__
authorRichard Levitte <levitte@openssl.org>
Mon, 12 Sep 2022 15:29:53 +0000 (17:29 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 13 Sep 2022 07:34:53 +0000 (09:34 +0200)
commitb1104a3a2dd4351af85cf48f677691a414ffc3a2
treea31f0678f121d2eb5a47b6092c24fc27f20896f7
parente1035957eba1e6ebdefd0e18dcbad5cbfa7a969a
Checking __STDC_VERSION__ rather than __STRICT_ANSI__

`__STRICT_ANSI__` is a gnuish flag macro that indicates if `-ansi`
was given on the command line.  To check the C version, it's better
to check the macro `__STDC_VERSION__`.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/19197)
apps/lib/log.c