mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 17:31:23 +08:00
[CMAKE] Define _CRT_SUPPRESS_RESTRICT on GCC builds
This prevents the use of __declspec(restrict) in UCRT headers.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user