2 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
5 * Redistribution and use in source and binary forms are permitted only
6 * as authorized by the OpenLDAP Public License. A copy of this
7 * license is available at http://www.OpenLDAP.org/license.html or
8 * in file LICENSE in the top-level directory of the distribution.
15 #if defined(__cplusplus)
16 # define LDAP_BEGIN_DECL extern "C" {
17 # define LDAP_END_DECL }
19 # define LDAP_BEGIN_DECL /* begin declarations */
20 # define LDAP_END_DECL /* end declarations */
23 #if !defined(__NO_PROTOTYPES) && ( \
24 defined(__STDC__) || defined(__cplusplus) || \
25 defined(__NEED_PROTOTYPES) )
28 # define LDAP_P(protos) protos
29 # define LDAP_CONCAT1(x,y) x ## y
30 # define LDAP_CONCAT(x,y) LDAP_CONCAT1(x,y)
31 # define LDAP_STRING(x) #x /* stringify without expanding x */
32 # define LDAP_XSTRING(x) LDAP_STRING(x) /* expand x, then stringify */
34 #else /* no prototypes */
37 # define LDAP_P(protos) ()
38 # define LDAP_CONCAT(x,y) x/**/y
39 # define LDAP_STRING(x) "x"
41 #endif /* no prototypes */
46 # define LDAP_F __declspec( dllexport )
48 # define LDAP_F extern
50 #endif /* LDAP_FDECL */
52 #endif /* _LDAP_CDEFS_H */