diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 998fcb15ff..6ac51974e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -408,7 +408,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: install docfx - run: choco install docfx -y + run: choco install docfx -y --version=2.58.5 - name: run ./ci/docfx.cmd shell: cmd run: ./ci/docfx.cmd diff --git a/.gitignore b/.gitignore index a307af966e..8a55a4ca4a 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,5 @@ /bazel-* /plugin /build + +tags diff --git a/api/include/opentelemetry/common/spin_lock_mutex.h b/api/include/opentelemetry/common/spin_lock_mutex.h index b30fd3f44b..b35f54081a 100644 --- a/api/include/opentelemetry/common/spin_lock_mutex.h +++ b/api/include/opentelemetry/common/spin_lock_mutex.h @@ -13,6 +13,7 @@ # ifndef NOMINMAX # define NOMINMAX # endif +# define _WINSOCKAPI_ // stops including winsock.h # include #elif defined(__i386__) || defined(__x86_64__) # if defined(__clang__) diff --git a/exporters/jaeger/CMakeLists.txt b/exporters/jaeger/CMakeLists.txt index b6108013d6..0659c399b0 100644 --- a/exporters/jaeger/CMakeLists.txt +++ b/exporters/jaeger/CMakeLists.txt @@ -58,6 +58,8 @@ install( PATTERN "recordable.h" EXCLUDE) if(BUILD_TESTING) + add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) + add_executable(jaeger_recordable_test test/jaeger_recordable_test.cc) target_link_libraries( jaeger_recordable_test ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} @@ -69,7 +71,6 @@ if(BUILD_TESTING) TEST_LIST jaeger_recordable_test) add_executable(jaeger_exporter_test test/jaeger_exporter_test.cc) - add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) if(MSVC) if(GMOCK_LIB) unset(GMOCK_LIB CACHE) diff --git a/exporters/zipkin/CMakeLists.txt b/exporters/zipkin/CMakeLists.txt index 46a13ac787..b9591324fd 100644 --- a/exporters/zipkin/CMakeLists.txt +++ b/exporters/zipkin/CMakeLists.txt @@ -37,6 +37,8 @@ install( PATTERN "recordable.h" EXCLUDE) if(BUILD_TESTING) + add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) + add_executable(zipkin_recordable_test test/zipkin_recordable_test.cc) target_link_libraries( diff --git a/exporters/zipkin/test/zipkin_exporter_test.cc b/exporters/zipkin/test/zipkin_exporter_test.cc index 42654c2fb0..67d5c1c8ce 100644 --- a/exporters/zipkin/test/zipkin_exporter_test.cc +++ b/exporters/zipkin/test/zipkin_exporter_test.cc @@ -3,7 +3,6 @@ #ifndef HAVE_CPP_STDLIB -# define _WINSOCKAPI_ // stops including winsock.h # include "opentelemetry/exporters/zipkin/zipkin_exporter.h" # include # include "opentelemetry/ext/http/client/curl/http_client_curl.h" diff --git a/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h b/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h index fa727899e4..5aaaa0a0e5 100644 --- a/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h +++ b/ext/include/opentelemetry/ext/http/client/curl/http_operation_curl.h @@ -7,7 +7,6 @@ #include "opentelemetry/ext/http/client/http_client.h" #include "opentelemetry/version.h" -#include #include #include #include @@ -16,9 +15,11 @@ #include #ifdef _WIN32 # include +# include #else # include #endif +#include OPENTELEMETRY_BEGIN_NAMESPACE namespace ext