]> git.sur5r.net Git - openldap/commitdiff
Add LDAP_CONST macro for use within EXTERNAL headers such as
authorKurt Zeilenga <kurt@openldap.org>
Mon, 3 May 1999 21:10:35 +0000 (21:10 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 3 May 1999 21:10:35 +0000 (21:10 +0000)
<lber.h> and <ldap.h>.
Note: This should not be used within the implementation itself as
our "portable.h" mechanism provides Standard C vs. K&R "const" handling.

include/ldap_cdefs.h

index 87a6ca4d26ea7cf525032c95b86584268e220d3e..cd86d77f97bbec94ff1d99cfd7e1c5c914bad078 100644 (file)
 #      define LDAP_STRING(x)   #x /* stringify without expanding x */
 #      define LDAP_XSTRING(x)  LDAP_STRING(x) /* expand x, then stringify */
 
+#ifndef LDAP_CONST
+#      define LDAP_CONST       const
+#endif
+
 #else /* no prototypes */
 
        /* traditional C */
 #      define LDAP_CONCAT(x,y) x/**/y
 #      define LDAP_STRING(x)   "x"
 
+#ifndef LDAP_CONST
+#      define LDAP_CONST       /* no const */
+#endif
+
 #endif /* no prototypes */