Boost C++ Libraries: Ticket #11810: privilege __sun over sun for strict ISO compilers https://svn.boost.org/trac10/ticket/11810 <p> when compilers use strict ISO options such as -std=c++11 they only generate for SunOS the macro '<code>__sun</code>' and not '<code>sun</code>'. </p> <p> I propose minimally the attached patches, although there seems to be a bit of overkill with tests involving both in the source tree. </p> <p> That is to say, the documented way to test is something like the following: </p> <pre class="wiki">#ifdef __sun /* this is SunOS */ #endif #if defined(__sun) &amp;&amp; defined(__SVR4) /* this in particular is Solaris */ #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11810 Trac 1.4.3 Richard PALO <richard@…> Sat, 21 Nov 2015 06:19:20 GMT attachment set https://svn.boost.org/trac10/ticket/11810 https://svn.boost.org/trac10/ticket/11810 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">0001-libs-config-convert-sun-__sun-for-strict-ISO-compile.patch</span> </li> </ul> <p> patchset for libs/config convert 'sun' =&gt; '<span class="underline">sun' </span></p> Ticket Richard PALO <richard@…> Sat, 21 Nov 2015 06:19:49 GMT attachment set https://svn.boost.org/trac10/ticket/11810 https://svn.boost.org/trac10/ticket/11810 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">0001-libs-math-convert-sun-__sun-for-strict-ISO-compilers.patch</span> </li> </ul> <p> patchset for libs/math convert 'sun' =&gt; '<span class="underline">sun' </span></p> Ticket Richard PALO <richard@…> Sat, 21 Nov 2015 06:22:08 GMT <link>https://svn.boost.org/trac10/ticket/11810#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11810#comment:1</guid> <description> <p> third patchset refused? </p> </description> <category>Ticket</category> </item> <item> <author>Richard PALO <richard@…></author> <pubDate>Sat, 21 Nov 2015 06:22:37 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11810 https://svn.boost.org/trac10/ticket/11810 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">0001-tools-build-convert-sun-__sun-for-strict-ISO-compile.patch</span> </li> </ul> <p> patchset for tools/build convert 'sun' =&gt; '<span class="underline">sun' </span></p> Ticket viboes Sat, 21 Nov 2015 20:32:11 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11810#comment:2 https://svn.boost.org/trac10/ticket/11810#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">config</span> </li> </ul> Ticket John Maddock Sun, 22 Nov 2015 13:00:30 GMT owner, component changed https://svn.boost.org/trac10/ticket/11810#comment:3 https://svn.boost.org/trac10/ticket/11810#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">config</span> → <span class="trac-field-new">build</span> </li> </ul> <p> Reassigning, as this is a Boost.Build issue. </p> Ticket