Fix TAUTOLOGICAL_COMPARE macro on C++11
C++ doesn't support lambdas + auto until C++14.
Fixes
@@ -409,7 +409,8 @@ HEDLEY_STATIC_ASSERT(sizeof(simde_float64) == 8, "Unable to find 64-bit floating
#if \
HEDLEY_HAS_WARNING("-Wtautological-compare") || \
HEDLEY_GCC_VERSION_CHECK(8,0,0)
-# if defined(__cplusplus) && (__cplusplus >= 201103L)
+# if defined(__cplusplus)
+# if (__cplusplus >= 201402L)
# define SIMDE_TAUTOLOGICAL_COMPARE_(expr) \
(([](auto expr_){ \
HEDLEY_DIAGNOSTIC_PUSH \
@@ -417,6 +418,7 @@ HEDLEY_STATIC_ASSERT(sizeof(simde_float64) == 8, "Unable to find 64-bit floating
return (expr_); \
HEDLEY_DIAGNOSTIC_POP \
})(expr))
+# endif
# else
# define SIMDE_TAUTOLOGICAL_COMPARE_(expr) \
(__extension__ ({ \
@@ -426,7 +428,8 @@ HEDLEY_STATIC_ASSERT(sizeof(simde_float64) == 8, "Unable to find 64-bit floating
HEDLEY_DIAGNOSTIC_POP \
}))
# endif
-#else
+#endif
+#if !defined(SIMDE_TAUTOLOGICAL_COMPARE_)
# define SIMDE_TAUTOLOGICAL_COMPARE_(expr) (expr)
#endif
