Skip to content
Snippets Groups Projects
Commit 031b9ec0 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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.
parent ae711594
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment