6 #if defined(__cplusplus)
7 # define LDAP_BEGIN_DECL extern "C" {
8 # define LDAP_END_DECL }
10 # define LDAP_BEGIN_DECL /* empty */
11 # define LDAP_END_DECL /* empty */
14 #if !defined(__NO_PROTOTYPES) && ( \
15 defined(__STDC__) || defined(__cplusplus) || \
16 defined(__NEED_PROTOTYPES) )
19 # define LDAP_P(protos) protos
20 # define LDAP_CONCAT1(x,y) x ## y
21 # define LDAP_CONCAT(x,y) LDAP_CONCAT1(x,y)
22 # define LDAP_STRING(x) #x /* stringify without expanding x */
23 # define LDAP_XSTRING(x) LDAP_STRING(x) /* expand x, then stringify */
25 #else /* no prototypes */
28 # define LDAP_P(protos) ()
29 # define LDAP_CONCAT(x,y) x/**/y
30 # define LDAP_STRING(x) "x"
32 #endif /* no prototypes */
37 # define LDAP_F __declspec( dllexport )
39 # define LDAP_F extern
41 #endif /* LDAP_FDECL */
43 #endif /* _LDAP_CDEFS_H */