|
@@ -34,11 +34,6 @@
|
|
|
__clang_major__ == 3 && __clang_minor__ >= 4)
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
-// Intel C++ 17.0 or higher
|
|
|
-//////////////////////////////////////////////////////////////////////////////
|
|
|
-#elif defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1700
|
|
|
-
|
|
|
-//////////////////////////////////////////////////////////////////////////////
|
|
|
// GNU C++ 4.7 or higher
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
#elif defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 7)
|
|
@@ -181,7 +176,7 @@
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
// Detect CPU type
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
-#if defined(__GNUC__) || defined(__clang__) || defined(__INTEL_COMPILER)
|
|
|
+#if defined(__GNUC__) || defined(__clang__)
|
|
|
|
|
|
// x64 should be checked first because sometimes x86 macros are defined too
|
|
|
#if defined(__x86_64__) || defined(__amd64__)
|
|
@@ -278,6 +273,14 @@
|
|
|
# define __VIC_CONSTEXPR14 inline
|
|
|
#endif
|
|
|
|
|
|
+#if __cpp_if_consteval
|
|
|
+# define __VIC_IF_CONSTEVAL if consteval
|
|
|
+# define __VIC_IF_NOT_CONSTEVAL if !consteval
|
|
|
+#else
|
|
|
+# define __VIC_IF_CONSTEVAL if(std::is_constant_evaluated())
|
|
|
+# define __VIC_IF_NOT_CONSTEVAL if(!std::is_constant_evaluated())
|
|
|
+#endif
|
|
|
+
|
|
|
#ifndef __has_include
|
|
|
# define __has_include(f) 0
|
|
|
#endif
|