From 5ae482caca285f4230061c1391728fc9235c1655 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Tue, 21 Sep 2021 18:18:56 -0700 Subject: [PATCH] Fix deprecated usage of putenv for MSVC (#989) --- exporters/otlp/test/otlp_http_exporter_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exporters/otlp/test/otlp_http_exporter_test.cc b/exporters/otlp/test/otlp_http_exporter_test.cc index 60f66bc783..413bf7c1a1 100644 --- a/exporters/otlp/test/otlp_http_exporter_test.cc +++ b/exporters/otlp/test/otlp_http_exporter_test.cc @@ -20,6 +20,10 @@ # include "nlohmann/json.hpp" +# if defined(_MSC_VER) +# define putenv _putenv +# endif + using namespace testing; OPENTELEMETRY_BEGIN_NAMESPACE