Skip to content

Commit

Permalink
Fix warning of deprecation of putenv for MSVC (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Aug 2, 2021
1 parent 9d83b1c commit d6c187c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exporters/otlp/test/otlp_grpc_exporter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@

# include <gtest/gtest.h>

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

using namespace testing;

OPENTELEMETRY_BEGIN_NAMESPACE
Expand Down

0 comments on commit d6c187c

Please sign in to comment.