Fix porting on Linux

master
Unknown 2018-06-14 21:03:17 +02:00
parent 1bd7977348
commit a089cd6c1f
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ FILE *porting::fopen(const char *filename, const char *mode)
#ifdef _WIN32
fopen_s(&file, filename, mode);
#else
file = fopen(filename, mode);
file = ::fopen(filename, mode);
#endif // _WIN32
return file;
@ -32,7 +32,7 @@ std::string porting::getenv(const char *name)
std::size_t len;
_dupenv_s(&buf, &len, name);
#else
env = getenv(name);
env = ::getenv(name);
#endif // _WIN32
return buf == nullptr ? std::string() : std::string(buf);
}