From 031b9ec0922d3f33a29a4ed7d69c96bb459e5f4f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 3 May 1999 21:10:35 +0000 Subject: [PATCH] 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. --- include/ldap_cdefs.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.39.5