Add LDAP_CONST macro for use within EXTERNAL headers such as

<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.
This commit is contained in:
Kurt Zeilenga 1999-05-03 21:10:35 +00:00
parent ae711594b7
commit 031b9ec092

View file

@ -31,6 +31,10 @@
# define LDAP_STRING(x) #x /* stringify without expanding x */ # define LDAP_STRING(x) #x /* stringify without expanding x */
# define LDAP_XSTRING(x) LDAP_STRING(x) /* expand x, then stringify */ # define LDAP_XSTRING(x) LDAP_STRING(x) /* expand x, then stringify */
#ifndef LDAP_CONST
# define LDAP_CONST const
#endif
#else /* no prototypes */ #else /* no prototypes */
/* traditional C */ /* traditional C */
@ -38,6 +42,10 @@
# define LDAP_CONCAT(x,y) x/**/y # define LDAP_CONCAT(x,y) x/**/y
# define LDAP_STRING(x) "x" # define LDAP_STRING(x) "x"
#ifndef LDAP_CONST
# define LDAP_CONST /* no const */
#endif
#endif /* no prototypes */ #endif /* no prototypes */