Index: error_code.cpp =================================================================== --- error_code.cpp (revision 42991) +++ error_code.cpp (working copy) @@ -15,8 +15,12 @@ // But the wording of the warning is misleading and unsettling, there are no // portable alternative functions, and VC++ 8.0's own libraries use the // functions in question. So turn off the warnings. +#if defined(_CRT_SECURE_NO_DEPRECATE) #define _CRT_SECURE_NO_DEPRECATE +#endif +#if defined (_SCL_SECURE_NO_DEPRECATE) #define _SCL_SECURE_NO_DEPRECATE +#endif // define BOOST_SYSTEM_SOURCE so that knows // the library is being built (possibly exporting rather than importing code)