From 954027deb67775628641f97d21487ed5bf012587 Mon Sep 17 00:00:00 2001 From: StefanStojanovic Date: Mon, 16 Sep 2024 19:22:32 +0200 Subject: [PATCH] build,win: float VS 17.11 compilation patch Fixes: https://github.com/nodejs/node/issues/54898 --- 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;