From 8a8faa3d6ce7e771b688e1adb75ad57cf7836da2 Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Tue, 17 Jul 2018 19:10:49 +0300 Subject: [PATCH] Added __has_include() back. --- server/TracyWorker.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 10ee5b86..93df0dfb 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -9,12 +9,19 @@ #include #if ( defined _MSC_VER && _MSVC_LANG >= 201703L ) || __cplusplus >= 201703L -# include +# if __has_include() +# include +# else +# define MY_LIBCPP_SUCKS +# endif #else -# include "tracy_pdqsort.h" # define MY_LIBCPP_SUCKS #endif +#if MY_LIBCPP_SUCKS +# include "tracy_pdqsort.h" +#endif + #include "../common/TracyProtocol.hpp" #include "../common/TracySystem.hpp" #include "TracyFileRead.hpp"