From 01d3585bf38e8ac6bc9063bc5b6d6c931ad58efc Mon Sep 17 00:00:00 2001 From: Bevan Weiss Date: Sat, 15 Aug 2020 02:11:35 +1000 Subject: [PATCH] Bring back the non-compliant define, but version limited As noted, we've done something we shouldn't have with MSVC compiler specific defines. But to avoid breaking the MSVC build environment, leave this define in there until the MSVC version when it is actually exposed by the compiler itself (v16.8). --- Utilities/types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Utilities/types.h b/Utilities/types.h index 14620dcf88..72ddb37a63 100644 --- a/Utilities/types.h +++ b/Utilities/types.h @@ -17,6 +17,11 @@ #include #include +#ifdef _MSC_VER +#ifndef __cpp_lib_bitops && _MSC_VER < 1928 +#define __cpp_lib_bitops +#endif +#endif #include #ifndef __has_builtin