From: Kurt Zeilenga Date: Mon, 3 May 1999 21:10:35 +0000 (+0000) Subject: Add LDAP_CONST macro for use within EXTERNAL headers such as X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~87 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=031b9ec0922d3f33a29a4ed7d69c96bb459e5f4f;p=openldap Add LDAP_CONST macro for use within EXTERNAL headers such as and . Note: This should not be used within the implementation itself as our "portable.h" mechanism provides Standard C vs. K&R "const" handling. --- diff --git a/include/ldap_cdefs.h b/include/ldap_cdefs.h index 87a6ca4d26..cd86d77f97 100644 --- a/include/ldap_cdefs.h +++ b/include/ldap_cdefs.h @@ -31,6 +31,10 @@ # 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 */ @@ -38,6 +42,10 @@ # define LDAP_CONCAT(x,y) x/**/y # define LDAP_STRING(x) "x" +#ifndef LDAP_CONST +# define LDAP_CONST /* no const */ +#endif + #endif /* no prototypes */