]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: serassio
authoramosjeffries <>
Sun, 24 Feb 2008 18:33:27 +0000 (18:33 +0000)
committeramosjeffries <>
Sun, 24 Feb 2008 18:33:27 +0000 (18:33 +0000)
Windows port: restore Windows compatibility changes to edir_ldapext.c lost after last commit.

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"