diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-07-18 12:54:18 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-07-18 12:54:18 +0200 |
commit | b79115518b9d68cf280cde717634e6f2f2e4ee72 (patch) | |
tree | 130aa8098b8bc09685000964d8b6775b357155b3 /extensions/source | |
parent | 5da91ea59329e3993a10c72fa02bc1f1dbf398d8 (diff) |
simplify the header a bit
Change-Id: If04e415b043c822d082e8e0889f162db3ed1849e
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/config/ldap/wrapldapinclude.hxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/extensions/source/config/ldap/wrapldapinclude.hxx b/extensions/source/config/ldap/wrapldapinclude.hxx index 7b03fcd99449..fe2c7eae9c3c 100644 --- a/extensions/source/config/ldap/wrapldapinclude.hxx +++ b/extensions/source/config/ldap/wrapldapinclude.hxx @@ -26,6 +26,11 @@ #include <windows.h> #include <winldap.h> #define CONST_PCHAR_CAST (const PCHAR) +#else // !defined WNT +#include <ldap.h> +#define CONST_PCHAR_CAST +#endif // WNT + #ifndef LDAP_API # define LDAP_API(rt) rt #endif @@ -35,16 +40,6 @@ #ifndef LDAP_NO_ATTRS # define LDAP_NO_ATTRS "1.1" #endif -#else // !defined WNT -#include <ldap.h> -#ifndef LDAP_API -# define LDAP_API(rt) rt -#endif -#ifndef LDAP_CALL -# define LDAP_CALL -#endif -#define CONST_PCHAR_CAST -#endif // WNT #ifdef WNT #pragma warning (pop) |