mirror of
https://github.com/boostorg/boost.git
synced 2025-04-14 17:03:38 +00:00
use std:: for getenv
[SVN r10325]
This commit is contained in:
parent
ddb67196f3
commit
9364b4e928
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue