From ce19309d090e59b98cc7e31f7b2a17a97e3d783d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 26 Jul 2018 07:59:41 -0700 Subject: [PATCH] Workaround a bug in icc 15 --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index eb80cc2f..2f270047 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -24,7 +24,8 @@ # define FMT_HAS_FEATURE(x) 0 #endif -#ifdef __has_include +#if defined(__has_include) && \ + (!defined(__INTEL_COMPILER) || __INTEL_COMPILER >= 1600) # define FMT_HAS_INCLUDE(x) __has_include(x) #else # define FMT_HAS_INCLUDE(x) 0