]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ldap: drop PP logic for old, unsupported, Windows SDKs
authorViktor Szakats <commit@vsz.me>
Wed, 10 Dec 2025 14:37:44 +0000 (15:37 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 10 Dec 2025 15:02:55 +0000 (16:02 +0100)
`LDAP_VENDOR_NAME` and `winber.h` are available in all supported
MS SDK and mingw-w64 versions. Stop checking for them.

Also drop redundant parenthesis in PP expression.

Closes #19918

lib/ldap.c

index ba9620b4b1859a7d990d35c1c601b2c9a893d0bd..b51aab56fb44525e3a56e0843ef1118d0fb6c7f6 100644 (file)
 #  pragma warning(pop)
 # endif
 # include <winldap.h>
-# ifndef LDAP_VENDOR_NAME
-#  error Your Platform SDK is NOT sufficient for LDAP support! \
-         Update your Platform SDK, or disable LDAP support!
-# else
-#  include <winber.h>
-# endif
+# include <winber.h>
 #else
 # define LDAP_DEPRECATED 1      /* Be sure ldap_init() is defined. */
 # ifdef HAVE_LBER_H
 #  include <lber.h>
 # endif
 # include <ldap.h>
-# if (defined(HAVE_LDAP_SSL) && defined(HAVE_LDAP_SSL_H))
+# if defined(HAVE_LDAP_SSL) && defined(HAVE_LDAP_SSL_H)
 #  include <ldap_ssl.h>
 # endif /* HAVE_LDAP_SSL && HAVE_LDAP_SSL_H */
 #endif