]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_memrchr: enable in all builds
authorDaniel Stenberg <daniel@haxx.se>
Mon, 10 Mar 2025 21:41:15 +0000 (22:41 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Mar 2025 22:10:31 +0000 (23:10 +0100)
It is used in the URL parser since bc24c60512

Reported-by: Justin Steventon
Fixes #16661
Closes #16663

lib/curl_memrchr.c

index af3edff02786eafcd00f20e41c90d6a56cfce971..5b6a39c022cc33ea752c658abe8489d93b15e4a9 100644 (file)
 #include "memdebug.h"
 
 #ifndef HAVE_MEMRCHR
-#if (!defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)) || \
-  defined(USE_OPENSSL) || \
-  defined(USE_SCHANNEL)
-
 /*
  * Curl_memrchr()
  *
@@ -63,6 +59,4 @@ Curl_memrchr(const void *s, int c, size_t n)
   }
   return NULL;
 }
-
-#endif
 #endif /* HAVE_MEMRCHR */