From d6c187ca32f94bdd780287820182cd3d38f8a20e Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Mon, 2 Aug 2021 11:57:12 -0700 Subject: [PATCH] Fix warning of deprecation of putenv for MSVC (#935) --- exporters/otlp/test/otlp_grpc_exporter_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/exporters/otlp/test/otlp_grpc_exporter_test.cc b/exporters/otlp/test/otlp_grpc_exporter_test.cc index 13acd5b9ce..d2b999382a 100644 --- a/exporters/otlp/test/otlp_grpc_exporter_test.cc +++ b/exporters/otlp/test/otlp_grpc_exporter_test.cc @@ -31,6 +31,10 @@ # include +# if defined(_MSC_VER) +# define putenv _putenv +# endif + using namespace testing; OPENTELEMETRY_BEGIN_NAMESPACE