[openssl-dev] [openssl.org #4144] patch: Use '__sun' instead of 'sun' for strict ISO conforming, compiler/options
Richard PALO via RT
rt at openssl.org
Wed Nov 18 12:46:05 UTC 2015
Le 17/11/15 19:47, Kurt Roeckx via RT a écrit :
> On Tue, Nov 17, 2015 at 06:33:22PM +0000, Richard PALO via RT wrote:
>>
>> Strict ISO conforming compilers don't define 'sun', only __sun.
>
> Ah, I clearly misunderstood your earlier message.
>
>
> Kurt
>
Sorry, perhaps it was a bit terse...
Here's a comparison of 'with extensions' and then 'strict' for studio
> richard at omnis:/home/richard$ /opt/solarisstudio12.4/bin/cc -xc99 -E -xdumpmacros /dev/null |& egrep 'sun|svr4|SVR4'
> #define __SVR4 1
> #define __sun 1
> #define sun 1
> richard at omnis:/home/richard$ /opt/solarisstudio12.4/bin/cc -Xc -xc99 -E -xdumpmacros /dev/null |& egrep 'sun|svr4|SVR4'
> #define __SVR4 1
> #define __sun 1
and for gcc (or clang)
> richard at omnis:/home/richard$ /opt/gcc-4.8.1/bin/gcc -std=gnu99 -E -dM - </dev/null |& egrep 'sun|svr4|SVR4'
> #define __SVR4 1
> #define __sun 1
> #define sun 1
> #define __sun__ 1
> #define __svr4__ 1
> richard at omnis:/home/richard$ /opt/gcc-4.8.1/bin/gcc -std=c99 -E -dM - </dev/null |& egrep 'sun|svr4|SVR4'
> #define __SVR4 1
> #define __sun 1
> #define __sun__ 1
> #define __svr4__ 1
--
Richard PALO
More information about the openssl-dev
mailing list