Skip to content

Commit

Permalink
Fix deprecated usage of putenv for MSVC (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Sep 22, 2021
1 parent b1f96c9 commit 5ae482c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exporters/otlp/test/otlp_http_exporter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

# include "nlohmann/json.hpp"

# if defined(_MSC_VER)
# define putenv _putenv
# endif

using namespace testing;

OPENTELEMETRY_BEGIN_NAMESPACE
Expand Down

0 comments on commit 5ae482c

Please sign in to comment.