mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Allow setting NO_PARALLEL_SORT externally.
This commit is contained in:
parent
207a48e986
commit
d71d76414b
@ -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 __has_include(<execution>)
|
# if !defined __APPLE__ && ( ( defined _MSC_VER && _MSVC_LANG >= 201703L ) || __cplusplus >= 201703L )
|
||||||
# include <algorithm>
|
# if __has_include(<execution>)
|
||||||
# include <execution>
|
# include <algorithm>
|
||||||
|
# include <execution>
|
||||||
|
# else
|
||||||
|
# define NO_PARALLEL_SORT
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
# define NO_PARALLEL_SORT
|
# define NO_PARALLEL_SORT
|
||||||
# endif
|
# endif
|
||||||
#else
|
|
||||||
# define NO_PARALLEL_SORT
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "tracy_pdqsort.h"
|
#include "tracy_pdqsort.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user