Skip to content

Commit bb9392e

Browse files
committed
[CMAKE] Define _CRT_SUPPRESS_RESTRICT on GCC builds
This prevents the use of __declspec(restrict) in UCRT headers.
1 parent 70bf3bb commit bb9392e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdk/cmake/gcc.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ endif()
251251
# Fix build with GLIBCXX + our c++ headers
252252
add_definitions(-D_GLIBCXX_HAVE_BROKEN_VSWPRINTF)
253253

254+
# Fix build with UCRT headers
255+
add_definitions(-D_CRT_SUPPRESS_RESTRICT)
256+
254257
# Alternative arch name
255258
if(ARCH STREQUAL "amd64")
256259
set(ARCH2 x86_64)

0 commit comments

Comments
 (0)