Boost C++ Libraries: Ticket #3047: Potential redifinitions in visualc of BOOST_DISABLE_WIN32 and BOOST_NO_RTTI https://svn.boost.org/trac10/ticket/3047 <p> There is some auto-detection logic in boost-1.38.0/boost/config/compiler/visualc.hpp to define BOOST_DISABLE_WIN32 and BOOST_NO_RTTI, depending on the environment. </p> <p> In our setup BOOST_NO_RTTI is already defined across all platform toolchains, and the logic results in a warning: </p> <p> .../boost-1.38.0\boost/config/compiler/visualc.hpp(136) : warning C4005: 'BOOST_NO_RTTI' : macro redefinition </p> <blockquote> <p> 304 command-line arguments : see previous definition of 'BOOST_NO_RTTI' </p> </blockquote> <p> This proposes patch will prevent the redefinition of these defines, if they are already defined. </p> <p> The issue appears to be unresolved in 1.39.0 </p> <p> The suggested patch w.r.t. 1.38.0: </p> <p> 132c132 &lt; #ifndef _MSC_EXTENSIONS --- </p> <blockquote class="citation"> <p> #if !defined(_MSC_EXTENSIONS) &amp;&amp; !defined(BOOST_DISABLE_WIN32) </p> </blockquote> <p> 135c135 &lt; #ifndef _CPPRTTI --- </p> <blockquote class="citation"> <p> #if !defined(_CPPRTTI) &amp;&amp; !defined(BOOST_NO_RTTI) </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3047 Trac 1.4.3 anonymous Tue, 19 May 2009 05:02:52 GMT attachment set https://svn.boost.org/trac10/ticket/3047 https://svn.boost.org/trac10/ticket/3047 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">visualc.hpp</span> </li> </ul> Ticket anonymous Tue, 19 May 2009 05:03:15 GMT attachment set https://svn.boost.org/trac10/ticket/3047 https://svn.boost.org/trac10/ticket/3047 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_config_compiler_visualc.patch</span> </li> </ul> Ticket John Maddock Wed, 20 May 2009 17:11:31 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3047#comment:1 https://svn.boost.org/trac10/ticket/3047#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in revision <a class="missing ticket">#53107</a>. </p> Ticket