diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-07-18 16:24:21 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-07-18 16:24:45 +0200 |
commit | 79f15259bc117c27bfe8d1590836ef1565c49278 (patch) | |
tree | 6a319f27ca0b3ec84328934f142a9ae55754fc67 /extensions/source | |
parent | cf342fe92880710e070fb98583a9dcbff77a0522 (diff) |
Junking wrapldapinclude.hxx, since it is included only once and is small
Change-Id: I16ec56f8fefd3224b82e074371d9a8a944c75032
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/config/ldap/ldapaccess.hxx | 27 | ||||
-rw-r--r-- | extensions/source/config/ldap/wrapldapinclude.hxx | 46 |
2 files changed, 26 insertions, 47 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> diff --git a/extensions/source/config/ldap/wrapldapinclude.hxx b/extensions/source/config/ldap/wrapldapinclude.hxx deleted file mode 100644 index e819baab4a95..000000000000 --- a/extensions/source/config/ldap/wrapldapinclude.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#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 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |