Commit 6cc51fe27c5 for php.net

commit 6cc51fe27c5134fc2c2b2fcc6b89ad091b12b5ad
Author: Peter Kokot <peterkokot@gmail.com>
Date:   Sun May 24 12:35:07 2026 +0200

    ext/curl: Use CHECK_HEADER (#22106)

    CHECK_HEADER() doesn't define redundant compile definitions.

    See f17c5ad83b67a61ec33c893c2009c0c4aeb50be7

diff --git a/ext/curl/config.w32 b/ext/curl/config.w32
index c3c314f1009..567699f3b74 100644
--- a/ext/curl/config.w32
+++ b/ext/curl/config.w32
@@ -14,7 +14,7 @@ if (PHP_CURL != "no") {
 		 CHECK_LIB("libssh2.lib", "curl", PHP_CURL) &&
 		 CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
 		) {
-		if (!(CHECK_HEADER_ADD_INCLUDE("brotli/decode.h", "CFLAGS_CURL") &&
+		if (!(CHECK_HEADER("brotli/decode.h", "CFLAGS_CURL") &&
 			CHECK_LIB("brotlidec.lib;brotlidec-static.lib", "curl", PHP_CURL) &&
 			CHECK_LIB("brotlicommon.lib;brotlicommon-static.lib", "curl", PHP_CURL)
 		)) {