[oi-dev] g++ 4.7 headers issue

Alexander Pyhalov alp at rsu.ru
Thu May 30 06:47:23 UTC 2013


Good day.

On 05/30/2013 10:41, Jean-Pierre wrote:
> Alexander Pyhalov wrote:
>> Hello.

> And, I expected "#ifdef _sun" to mean just that, irrespective of
> compiler, instead of meaning "This code is meaningful to a
> Sun-derived compiler".
>
> Can somebody point to a guideline ?

Yes, GCC also defines this macros, so I used __SUNPRO_CC one.

I was misguided by 
http://docs.oracle.com/cd/E19205-01/820-4155/c++_faq.html , where __sun 
is described as  "Sun compiler".
-- 
Best regards,
Alexander Pyhalov,
system administrator of Computer Center of Southern Federal University




More information about the oi-dev mailing list