Ticket #1609: system_error_code.cpp.patch

File system_error_code.cpp.patch, 706 bytes (added by Sebastian Ramacher <s.ramacher@…>, 15 years ago)
  • error_code.cpp

     
    1515//  But the wording of the warning is misleading and unsettling, there are no
    1616//  portable alternative functions, and VC++ 8.0's own libraries use the
    1717//  functions in question. So turn off the warnings.
     18#if defined(_CRT_SECURE_NO_DEPRECATE)
    1819#define _CRT_SECURE_NO_DEPRECATE
     20#endif
     21#if defined (_SCL_SECURE_NO_DEPRECATE)
    1922#define _SCL_SECURE_NO_DEPRECATE
     23#endif
    2024
    2125// define BOOST_SYSTEM_SOURCE so that <boost/system/config.hpp> knows
    2226// the library is being built (possibly exporting rather than importing code)