Skip to content

Commit 9cf0408

Browse files
committed
Add brotli and zstd checks for Windows builds
This fixes the build with recent builds of curl that have support for brotli and zstd encoding
1 parent 8da93b5 commit 9cf0408

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

config.w32

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ if (PHP_OAUTH != "no") {
1515
&& (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib", "oauth", PHP_OAUTH) || CHECK_LIB("zlib.lib", "oauth", PHP_OAUTH))) ||
1616
(PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "oauth", PHP_OAUTH)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED)))
1717
) {
18+
CHECK_LIB("brotlidec-static.lib;brotlidec.lib", "oauth", PHP_OAUTH);
19+
CHECK_LIB("brotlicommon-static.lib;brotlicommon.lib", "oauth", PHP_OAUTH);
20+
CHECK_LIB("libzstd_a.lib;libzstd.lib", "oauth", PHP_OAUTH);
1821
EXTENSION("oauth", "oauth.c provider.c", true);
1922
ADD_FLAG("CFLAGS_OAUTH", "/D CURL_STATICLIB");
2023
ADD_FLAG("CFLAGS_OAUTH", "/D OAUTH_USE_CURL");

0 commit comments

Comments
 (0)