Index: boost/test/utils/runtime/env/environment.ipp =================================================================== RCS file: /cvsroot/boost/boost/boost/test/utils/runtime/env/environment.ipp,v retrieving revision 1.1 diff -u -b -r1.1 environment.ipp --- boost/test/utils/runtime/env/environment.ipp 12 Apr 2005 06:42:43 -0000 1.1 +++ boost/test/utils/runtime/env/environment.ipp 26 Apr 2005 04:48:41 -0000 @@ -30,12 +30,6 @@ #include #include -# define BOOST_NO_STDC_NAMESPACE - -# ifdef BOOST_NO_STDC_NAMESPACE -namespace std { using ::BOOST_RT_PARAM_GETENV; using ::BOOST_RT_PARAM_PUTENV; } -# endif - namespace boost { namespace BOOST_RT_PARAM_NAMESPACE { @@ -93,11 +87,18 @@ BOOST_RT_PARAM_INLINE void sys_write_var( cstring var_name, format_stream& var_value ) { +#ifdef BOOST_WINDOWS format_stream fs; fs << var_name << '=' << var_value.str(); - std::BOOST_RT_PARAM_PUTENV( fs.str().c_str() ); + putenv ( fs.str().c_str() ); +#else + + // This is from BSD 4.3 and probably POSIX. + setenv (var_name, var_value.c_str ()); + +#endif } //____________________________________________________________________________//