[CMAKE] Define _CRT_SUPPRESS_RESTRICT on GCC builds

This prevents the use of __declspec(restrict) in UCRT headers.
This commit is contained in:
Timo Kreuzer
2025-01-28 21:30:42 +02:00
parent 70bf3bb8fa
commit bb9392e4e1

View File

@@ -251,6 +251,9 @@ endif()
# Fix build with GLIBCXX + our c++ headers
add_definitions(-D_GLIBCXX_HAVE_BROKEN_VSWPRINTF)
# Fix build with UCRT headers
add_definitions(-D_CRT_SUPPRESS_RESTRICT)
# Alternative arch name
if(ARCH STREQUAL "amd64")
set(ARCH2 x86_64)