Skip to content

Commit

Permalink
Fix for non-clang compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
mapgccv committed Nov 14, 2024
1 parent 4de1f23 commit aa6ca1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ void WarnOnDifferentCapitalizations(const std::string& target_name) {
bool has_seen_variant = false;
bool printed_header = false;

for (char** env = ::environ; *env != nullptr; ++env) {
for (char** env = environ; *env != nullptr; ++env) {
std::string env_entry = *env;
auto delimiter_pos = env_entry.find('=');

Expand Down

0 comments on commit aa6ca1b

Please sign in to comment.