[oi-dev] g++ 4.7 headers issue

Alan Coopersmith alan.coopersmith at oracle.com
Thu May 30 06:55:29 UTC 2013


On 05/29/13 11:47 PM, Alexander Pyhalov wrote:
> 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".

Yeah, that's a mistake, but that's also documentation for an obsolete release.

Unfortunately, it's repeated in the documentation for the current release, at
http://www.oracle.com/technetwork/server-storage/solarisstudio/documentation/cplusplus-faq-355066.html
so I'll see if I can get them to fix it.

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc




More information about the oi-dev mailing list