From 72341218357f77c4233cad4b844fd2af8b88d449 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 15 Jul 2025 16:47:06 -0300 Subject: [PATCH] Avoid trashing VC++'s own propropietary restrict-like keyword --- src/tls_chacha20.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls_chacha20.c b/src/tls_chacha20.c index 597022fa..a15551ff 100644 --- a/src/tls_chacha20.c +++ b/src/tls_chacha20.c @@ -20,8 +20,8 @@ #if defined(_MSC_VER) || defined(__cplusplus) // add restrict support -#if (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__clang__) || \ - defined(__GNUC__) +#if ((defined(_MSC_VER) && _MSC_VER >= 1900) && !defined(__cplusplus)) || \ + defined(__clang__) || defined(__GNUC__) #define restrict __restrict #else #define restrict