[Boost-bugs] [Boost C++ Libraries] #1768: system: error_code.cpp #defines macros without checking whether already defined

Subject: [Boost-bugs] [Boost C++ Libraries] #1768: system: error_code.cpp #defines macros without checking whether already defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-04 02:17:25


#1768: system: error_code.cpp #defines macros without checking whether already
defined
--------------------------+-------------------------------------------------
 Reporter: mmarcus | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: system
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 error_code.cpp contains the following #defines:

 #define _CRT_SECURE_NO_DEPRECATE
 #define _SCL_SECURE_NO_DEPRECATE

 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:

 #define _SECURE_SCL 0

 for VC 9.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1768>
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:49:57 UTC