]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: restore Windows compatibility changes to edir_ldapext.c lost after...
authorserassio <>
Mon, 21 Jan 2008 00:31:11 +0000 (00:31 +0000)
committerserassio <>
Mon, 21 Jan 2008 00:31:11 +0000 (00:31 +0000)
helpers/digest_auth/eDirectory/edir_ldapext.c

index 2a7521c04d9b740e7d749f91099998f1c7a4b9e8..3aafb08f6511676c552ce7258fda0e8fc3804ae2 100644 (file)
  * 
 */
 
+#include "digest_common.h"
+
+#ifdef _SQUID_MSWIN_            /* Native Windows port and MinGW */
+
+#define snprintf _snprintf
+#include <windows.h>
+#include <winldap.h>
+#include <winber.h>
+#ifndef LDAPAPI
+#define LDAPAPI __cdecl
+#endif
+#ifdef LDAP_VERSION3
+#ifndef LDAP_OPT_X_TLS
+#define LDAP_OPT_X_TLS 0x6000
+#endif
+#define ber_alloc() ber_alloc_t(0)
+#endif /* LDAP_VERSION3 */
+
+#else
+
 #include <lber.h>
 #include <ldap.h>
+
+#endif
 #include <wchar.h>
-#include <stdlib.h>
 
 #include "edir_ldapext.h"