Boost C++ Libraries: Ticket #1768: system: error_code.cpp #defines macros without checking whether already defined https://svn.boost.org/trac10/ticket/1768 <p> error_code.cpp contains the following #defines: </p> <p> #define _CRT_SECURE_NO_DEPRECATE #define _SCL_SECURE_NO_DEPRECATE </p> <p> It should first check that these macros are not defined already. Otherwise users who #define these macros on the command line will received duplicate definition errors, as I am. Also, you might consider adding: </p> <p> #define _SECURE_SCL 0 </p> <p> for VC 9. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1768 Trac 1.4.3 Mat Marcus Sat, 05 Apr 2008 19:08:31 GMT <link>https://svn.boost.org/trac10/ticket/1768#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1768#comment:1</guid> <description> <p> Actually, a short term fix (e.g. for possible 1.35.1) keeping the current semantics, but avoiding errors for those errors who define this flag globally via the command line of their build system, might be to replace: #define _CRT_SECURE_NO_DEPRECATE #define _SCL_SECURE_NO_DEPRECATE with #define _CRT_SECURE_NO_DEPRECATE 1 #define _SCL_SECURE_NO_DEPRECATE 1 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Thu, 29 May 2008 01:35:54 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1768#comment:2 https://svn.boost.org/trac10/ticket/1768#comment:2 <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 by including &lt;boost/config/warning_disable.hpp&gt; </p> Ticket