Skip to content

Commit 6c13d72

Browse files
committed
Patch
Signed-off-by: Rohit Agrawal <[email protected]>
1 parent 6175aa0 commit 6c13d72

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

api/include/opentelemetry/config.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33

44
#pragma once
55

6-
#ifndef __has_include
7-
# define OPENTELEMETRY_HAS_INCLUDE(x) 0
8-
#else
9-
# define OPENTELEMETRY_HAS_INCLUDE(x) __has_include(x)
10-
#endif
6+
#include <type_traits> // IWYU pragma: keep
117

12-
#if !defined(__GLIBCXX__) || OPENTELEMETRY_HAS_INCLUDE(<codecvt>) // >= libstdc++-5
8+
#if !defined(__GLIBCXX__) || (defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE >= 7) || \
9+
(defined(__GLIBCXX__) && __GLIBCXX__ >= 20150422) // >= libstdc++-5
1310
# define OPENTELEMETRY_TRIVIALITY_TYPE_TRAITS
1411
#endif

0 commit comments

Comments
 (0)