File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
api/include/opentelemetry/nostd/internal/absl/base Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 6969
7070// Include a standard library header to allow configuration based on the
7171// standard library in use.
72- #ifdef __cplusplus
73- #include < ciso646>
72+ // Using C++20 feature-test macros when possible, otherwise fall back to
73+ // ciso646/iso646.h.There are warnings when includeing ciso646 in C++17 mode
74+ #ifdef __has_include
75+ # if __has_include(<version>)
76+ # include < version>
77+ # endif
78+ #elif defined(_MSC_VER) && \
79+ ((defined (__cplusplus) && __cplusplus >= 202002L ) || (defined (_MSVC_LANG) && _MSVC_LANG >= 202002L ))
80+ # if _MSC_VER >= 1922
81+ # include < version>
82+ # endif
83+ #elif defined(__cplusplus) && __cplusplus < 201703L
84+ # include < ciso646>
85+ #else
86+ # include < iso646.h>
7487#endif
7588
7689// -----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments