Skip to content

Commit

Permalink
Fix 3-way comparison detection mechanism (#1094)
Browse files Browse the repository at this point in the history
Signed-off-by: kboyarinov <[email protected]>
  • Loading branch information
kboyarinov authored May 3, 2023
1 parent 303848e commit 4cc1cca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/oneapi/tbb/detail/_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
/* Check which standard library we use. */
#include <cstddef>

#ifdef __has_include
#if __has_include(<version>)
#include <version>
#endif
#endif

#include "_export.h"

#if _MSC_VER
Expand Down Expand Up @@ -265,7 +271,7 @@
#if defined(__cpp_impl_three_way_comparison) && defined(__cpp_lib_three_way_comparison)
#define __TBB_CPP20_COMPARISONS_PRESENT ((__cpp_impl_three_way_comparison >= 201907L) && (__cpp_lib_three_way_comparison >= 201907L))
#else
#define __TBB_CPP20_COMPARISONS_PRESENT __TBB_CPP20_PRESENT
#define __TBB_CPP20_COMPARISONS_PRESENT 0
#endif

#define __TBB_RESUMABLE_TASKS (!__TBB_WIN8UI_SUPPORT && !__ANDROID__ && !__QNXNTO__ && (!__linux__ || __GLIBC__))
Expand Down

0 comments on commit 4cc1cca

Please sign in to comment.