Allow setting NO_PARALLEL_SORT externally.

This commit is contained in:
Bartosz Taudul 2021-04-15 19:55:50 +02:00
parent 207a48e986
commit d71d76414b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1,15 +1,17 @@
#ifndef __TRACYSORT_HPP__ #ifndef __TRACYSORT_HPP__
#define __TRACYSORT_HPP__ #define __TRACYSORT_HPP__
#if !defined __APPLE__ && ( ( defined _MSC_VER && _MSVC_LANG >= 201703L ) || __cplusplus >= 201703L ) #ifndef NO_PARALLEL_SORT
# if !defined __APPLE__ && ( ( defined _MSC_VER && _MSVC_LANG >= 201703L ) || __cplusplus >= 201703L )
# if __has_include(<execution>) # if __has_include(<execution>)
# include <algorithm> # include <algorithm>
# include <execution> # include <execution>
# else # else
# define NO_PARALLEL_SORT # define NO_PARALLEL_SORT
# endif # endif
#else # else
# define NO_PARALLEL_SORT # define NO_PARALLEL_SORT
# endif
#endif #endif
#include "tracy_pdqsort.h" #include "tracy_pdqsort.h"