Skip to content

Commit e8bdb66

Browse files
committed
Guard includes for iwyu
1 parent 0e33217 commit e8bdb66

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

ext/src/http/client/curl/http_operation_curl.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
#include <curl/curl.h>
55
#include <curl/curlver.h>
66
#include <curl/system.h>
7+
8+
#ifdef ENABLE_OTLP_RETRY_PREVIEW
9+
# include <array>
10+
#endif // ENABLE_OTLP_RETRY_PREVIEW
11+
712
#include <algorithm>
8-
#include <array>
913
#include <atomic>
1014
#include <chrono>
1115
#include <cmath>

ext/test/http/curl_http_test.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#include <curl/curl.h>
54
#include <curl/curlver.h>
6-
#include "gmock/gmock.h"
75
#include "gtest/gtest.h"
86

7+
#ifdef ENABLE_OTLP_RETRY_PREVIEW
8+
# include <curl/curl.h>
9+
# include "gmock/gmock.h"
10+
#endif // ENABLE_OTLP_RETRY_PREVIEW
11+
912
#include <string.h>
1013
#include <algorithm>
1114
#include <atomic>

0 commit comments

Comments
 (0)