summaryrefslogtreecommitdiff
path: root/extensions/source/config/ldap/ldapaccess.hxx
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-07-18 16:24:21 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-07-18 16:24:45 +0200
commit79f15259bc117c27bfe8d1590836ef1565c49278 (patch)
tree6a319f27ca0b3ec84328934f142a9ae55754fc67 /extensions/source/config/ldap/ldapaccess.hxx
parentcf342fe92880710e070fb98583a9dcbff77a0522 (diff)
Junking wrapldapinclude.hxx, since it is included only once and is small
Change-Id: I16ec56f8fefd3224b82e074371d9a8a944c75032
Diffstat (limited to 'extensions/source/config/ldap/ldapaccess.hxx')
-rw-r--r--extensions/source/config/ldap/ldapaccess.hxx27
1 files changed, 26 insertions, 1 deletions
diff --git a/extensions/source/config/ldap/ldapaccess.hxx b/extensions/source/config/ldap/ldapaccess.hxx
index 4886dc3cb15a..0158b13a1c51 100644
--- a/extensions/source/config/ldap/ldapaccess.hxx
+++ b/extensions/source/config/ldap/ldapaccess.hxx
@@ -24,7 +24,32 @@
#include <map>
-#include "wrapldapinclude.hxx"
+#ifdef WNT
+#pragma warning (push,1)
+#pragma warning (disable:4668)
+#endif
+
+#ifdef WNT
+#include <windows.h>
+#include <winldap.h>
+#ifndef LDAP_NO_ATTRS
+# define LDAP_NO_ATTRS L"1.1"
+#endif
+#else // !defined WNT
+#include <ldap.h>
+#endif // WNT
+
+#ifndef LDAP_API
+# define LDAP_API(rt) rt
+#endif
+#ifndef LDAP_CALL
+# define LDAP_CALL
+#endif
+
+#ifdef WNT
+#pragma warning (pop)
+#endif // WNT
+
#include <com/sun/star/ldap/LdapGenericException.hpp>
#include <com/sun/star/ldap/LdapConnectionException.hpp>