We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6175aa0 commit 6c13d72Copy full SHA for 6c13d72
api/include/opentelemetry/config.h
@@ -3,12 +3,9 @@
3
4
#pragma once
5
6
-#ifndef __has_include
7
-# define OPENTELEMETRY_HAS_INCLUDE(x) 0
8
-#else
9
-# define OPENTELEMETRY_HAS_INCLUDE(x) __has_include(x)
10
-#endif
+#include <type_traits> // IWYU pragma: keep
11
12
-#if !defined(__GLIBCXX__) || OPENTELEMETRY_HAS_INCLUDE(<codecvt>) // >= libstdc++-5
+#if !defined(__GLIBCXX__) || (defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE >= 7) || \
+ (defined(__GLIBCXX__) && __GLIBCXX__ >= 20150422) // >= libstdc++-5
13
# define OPENTELEMETRY_TRIVIALITY_TYPE_TRAITS
14
#endif
0 commit comments