Skip to content

Commit

Permalink
relates to #21
Browse files Browse the repository at this point in the history
  • Loading branch information
mcandre committed Sep 5, 2021
1 parent 606fb58 commit e82e5a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rez.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

#include <cstdio>
#if defined(_MSC_VER)
#if defined(_WIN32)
#define pclose _pclose
#define popen _popen
#endif
Expand Down Expand Up @@ -44,7 +44,7 @@ std::filesystem::path ApplyBinaryExtension(const std::filesystem::path &basename
std::optional<std::string> GetEnvironmentVariable(const std::string &key) {
char *transient = nullptr;

#if defined(_MSC_VER)
#if defined(_WIN32)
auto len = size_t(0);
errno = 0;
_dupenv_s(&transient, &len, key.c_str());
Expand Down Expand Up @@ -152,7 +152,7 @@ void Config::ApplyMSVCToolchain() const {
std::string line;

while (getline(cache, line)) {
#if defined(_MSC_VER)
#if defined(_WIN32)
errno = 0;
if (_putenv(line.c_str()) != 0) {
#else
Expand Down

0 comments on commit e82e5a3

Please sign in to comment.