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)
16 # define LDAP_P(protos) protos
17 # define LDAP_CONCAT1(x,y) x ## y
18 # define LDAP_CONCAT(x,y) LDAP_CONCAT1(x,y)
19 # define LDAP_STRING(x) #x /* stringify without expanding x */
20 # define LDAP_XSTRING(x) LDAP_STRING(x) /* expand x, then stringify */
21 #else /* ! __STDC__ && ! __cplusplus */
23 # define LDAP_P(protos) ()
24 # define LDAP_CONCAT(x,y) x/**/y
25 # define LDAP_STRING(x) "x"
26 #endif /* __STDC__ || __cplusplus */
30 # define LDAP_F __declspec( dllexport )
32 # define LDAP_F extern
34 #endif /* LDAP_FDECL */
36 #endif /* _LDAP_CDEFS_H */