6 #if defined(__cplusplus)
7 # define LDAP_BEGIN_DECL extern "C" {
8 # define LDAP_END_DECL }
10 # define LDAP_BEGIN_DECL
11 # define LDAP_END_DECL
14 #if defined(__STDC__) || defined(__cplusplus) || \
15 (defined(_WIN32) && !defined(NOPROTOTYPES))
17 # define LDAP_P(protos) protos
18 # define LDAP_CONCAT1(x,y) x ## y
19 # define LDAP_CONCAT(x,y) LDAP_CONCAT1(x,y)
20 # define LDAP_STRING(x) #x /* stringify without expanding x */
21 # define LDAP_XSTRING(x) LDAP_STRING(x) /* expand x, then stringify */
22 #else /* ! __STDC__ && ! __cplusplus */
24 # define LDAP_P(protos) ()
25 # define LDAP_CONCAT(x,y) x/**/y
26 # define LDAP_STRING(x) "x"
27 #endif /* __STDC__ || __cplusplus */
31 # define LDAP_F __declspec( dllexport )
33 # define LDAP_F extern
35 #endif /* LDAP_FDECL */
37 #endif /* _LDAP_CDEFS_H */