|
|
@@ -30,7 +30,7 @@
|
|
|
#ifdef BOOST_NO_STDC_NAMESPACE
|
|
|
namespace std {
|
|
|
using ::exit; using ::system; using ::strftime; using ::gmtime;
|
|
|
- using ::time; using ::time_t;
|
|
|
+ using ::time; using ::time_t; using ::getenv;
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
@@ -180,7 +180,7 @@ void replace_environment(std::string & s)
|
|
|
if(pos == std::string::npos)
|
|
|
break;
|
|
|
end = s.find_first_not_of("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_", pos+1);
|
|
|
- const char * env = getenv(s.substr(pos+1, end-pos-1).c_str());
|
|
|
+ const char * env = std::getenv(s.substr(pos+1, end-pos-1).c_str());
|
|
|
if(env)
|
|
|
replace(s, s.substr(pos, end-pos), env);
|
|
|
else
|