use std:: for getenv

[SVN r10325]
This commit is contained in:
Jens Maurer 2001-06-14 10:41:42 +00:00
parent ddb67196f3
commit 9364b4e928

View file

@ -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