diff --git a/containers/choc_Value.h b/containers/choc_Value.h index db4c6f3..ed66604 100644 --- a/containers/choc_Value.h +++ b/containers/choc_Value.h @@ -2442,6 +2442,12 @@ void ValueView::serialise (OutputStream& output) const uint8_t* localCopy = nullptr; #if _MSC_VER + + #ifdef __clang__ + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wlanguage-extension-token" + #endif + __try { localCopy = (uint8_t*) _alloca (dataSize); @@ -2450,6 +2456,11 @@ void ValueView::serialise (OutputStream& output) const { throwError ("Stack overflow"); } + + #ifdef __clang__ + #pragma clang diagnostic pop + #endif + #else localCopy = (uint8_t*) alloca (dataSize); #endif diff --git a/math/choc_MathHelpers.h b/math/choc_MathHelpers.h index fedcf3c..f91b195 100644 --- a/math/choc_MathHelpers.h +++ b/math/choc_MathHelpers.h @@ -30,7 +30,7 @@ #pragma intrinsic (_BitScanReverse64) #endif - #ifdef _M_X64 + #if defined (_M_X64) && ! defined (_M_ARM64EC) #pragma intrinsic (_umul128) #define CHOC_HAS_UMUL128 1 #endif