[Boost-bugs] [Boost C++ Libraries] #11810: privilege __sun over sun for strict ISO compilers

Subject: [Boost-bugs] [Boost C++ Libraries] #11810: privilege __sun over sun for strict ISO compilers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-21 06:18:19


#11810: privilege __sun over sun for strict ISO compilers
--------------------------------------+------------------------------
 Reporter: Richard PALO <richard@…> | Type: Patches
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.59.0
 Severity: Problem | Keywords:
--------------------------------------+------------------------------
 when compilers use strict ISO options such as
 -std=c++11 they only generate for SunOS the macro '`__sun`'
 and not '`sun`'.

 I propose minimally the attached patches, although there seems
 to be a bit of overkill with tests involving both in the source tree.

 That is to say, the documented way to test is something like the
 following:

 {{{
 #ifdef __sun
 /* this is SunOS */
 #endif

 #if defined(__sun) && defined(__SVR4)
 /* this in particular is Solaris */
 #endif
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11810>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC