Skip to content

Commit

Permalink
explicitly protect against double declaration of std::span as not all…
Browse files Browse the repository at this point in the history
… systems use __cpp_lib_span (e.g. Mac uses __CPP_LIB_SPAN)
  • Loading branch information
wlav committed Nov 13, 2023
1 parent 79f4e2a commit 4205d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cling/src/core/foundation/inc/ROOT/span.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
#if __cplusplus >= 202002
# if __has_include(<span>)
# include <span>
# define CPPYY_SPAN_INCLUDED 1
# endif
#endif

#if !defined(__cpp_lib_span)
#if !defined(CPPYY_SPAN_INCLUDED)

// Necessary to compile in c++11 mode
#if __cplusplus >= 201402L
Expand Down

0 comments on commit 4205d5e

Please sign in to comment.