From d975340a36bff1df29a6a4c4487f5b7fbb17c875 Mon Sep 17 00:00:00 2001 From: Laura Andelare Date: Wed, 3 Jul 2024 16:57:21 +0000 Subject: [PATCH] Add compiler version checks --- Source/UE5Coro/Public/UE5Coro/Definition.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/UE5Coro/Public/UE5Coro/Definition.h b/Source/UE5Coro/Public/UE5Coro/Definition.h index 1e4070d..4051393 100644 --- a/Source/UE5Coro/Public/UE5Coro/Definition.h +++ b/Source/UE5Coro/Public/UE5Coro/Definition.h @@ -40,3 +40,7 @@ #endif static_assert(sizeof(void*) == 8, "UE5Coro only supports 64-bit platforms"); + +#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER < 1941 +#error UE5Coro requires MSVC v14.41 or newer +#endif