mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +03:00
ldap: drop PP logic for old, unsupported, Windows SDKs
`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
This commit is contained in:
parent
14478429e7
commit
0295c9401d
1 changed files with 2 additions and 7 deletions
|
|
@ -64,19 +64,14 @@
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
# endif
|
# endif
|
||||||
# include <winldap.h>
|
# include <winldap.h>
|
||||||
# ifndef LDAP_VENDOR_NAME
|
# include <winber.h>
|
||||||
# error Your Platform SDK is NOT sufficient for LDAP support! \
|
|
||||||
Update your Platform SDK, or disable LDAP support!
|
|
||||||
# else
|
|
||||||
# include <winber.h>
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# define LDAP_DEPRECATED 1 /* Be sure ldap_init() is defined. */
|
# define LDAP_DEPRECATED 1 /* Be sure ldap_init() is defined. */
|
||||||
# ifdef HAVE_LBER_H
|
# ifdef HAVE_LBER_H
|
||||||
# include <lber.h>
|
# include <lber.h>
|
||||||
# endif
|
# endif
|
||||||
# include <ldap.h>
|
# 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>
|
# include <ldap_ssl.h>
|
||||||
# endif /* HAVE_LDAP_SSL && HAVE_LDAP_SSL_H */
|
# endif /* HAVE_LDAP_SSL && HAVE_LDAP_SSL_H */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue