From c92421a5f36429281440c8b9dba18136d9c1240d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 3 Mar 2023 16:06:02 +0900 Subject: [PATCH] deps: cherry-pick win/arm64/clang fix for nghttp3 Refs: https://github.com/ngtcp2/nghttp3/pull/112 --- deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c b/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c index 9ea91c81c8a1b9..5e7775f1a5a597 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(_M_ARM64) +#if defined(_MSC_VER) && !defined(__clang__) && (defined(_M_ARM) || defined(_M_ARM64)) unsigned int __popcnt(unsigned int x) { unsigned int c = 0; for (; x; ++c) {