From 653b96527a996eea7b32773bfd7f428cf494e4fe Mon Sep 17 00:00:00 2001 From: Stefan Stojanovic Date: Thu, 19 Sep 2024 22:36:42 +0200 Subject: [PATCH] build,win: float VS 17.11 compilation patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/nodejs/node/issues/54898 PR-URL: https://github.com/nodejs/node/pull/54970 Reviewed-By: Yagiz Nizipli Reviewed-By: Michaƫl Zasso Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c | 2 +- deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c b/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c index 61a7d06cad306f..38b5460837190b 100644 --- a/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c +++ b/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c @@ -33,7 +33,7 @@ #include "nghttp3_macro.h" -#if defined(_MSC_VER) && !defined(__clang__) && \ +#if defined(_MSC_VER) && _MSC_VER < 1941 && !defined(__clang__) && \ (defined(_M_ARM) || defined(_M_ARM64)) unsigned int __popcnt(unsigned int x) { unsigned int c = 0; diff --git a/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c b/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c index c381c231276d34..ecfdeb63b3485b 100644 --- a/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c +++ b/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c @@ -31,7 +31,7 @@ #include "ngtcp2_macro.h" -#if defined(_MSC_VER) && !defined(__clang__) && \ +#if defined(_MSC_VER) && _MSC_VER < 1941 && !defined(__clang__) && \ (defined(_M_ARM) || defined(_M_ARM64)) static unsigned int __popcnt(unsigned int x) { unsigned int c = 0;