Kaydet (Commit) b7911551 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

simplify the header a bit

Change-Id: If04e415b043c822d082e8e0889f162db3ed1849e
üst 5da91ea5
...@@ -26,6 +26,11 @@ ...@@ -26,6 +26,11 @@
#include <windows.h> #include <windows.h>
#include <winldap.h> #include <winldap.h>
#define CONST_PCHAR_CAST (const PCHAR) #define CONST_PCHAR_CAST (const PCHAR)
#else // !defined WNT
#include <ldap.h>
#define CONST_PCHAR_CAST
#endif // WNT
#ifndef LDAP_API #ifndef LDAP_API
# define LDAP_API(rt) rt # define LDAP_API(rt) rt
#endif #endif
...@@ -35,16 +40,6 @@ ...@@ -35,16 +40,6 @@
#ifndef LDAP_NO_ATTRS #ifndef LDAP_NO_ATTRS
# define LDAP_NO_ATTRS "1.1" # define LDAP_NO_ATTRS "1.1"
#endif #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 #ifdef WNT
#pragma warning (pop) #pragma warning (pop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment