mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 04:29:35 -05:00
Support old c_plusplus...
This commit is contained in:
parent
94d5067b22
commit
47be141fb4
1 changed files with 3 additions and 4 deletions
|
|
@ -12,7 +12,7 @@
|
|||
#ifndef _LDAP_CDEFS_H
|
||||
#define _LDAP_CDEFS_H
|
||||
|
||||
#if defined(__cplusplus)
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
# define LDAP_BEGIN_DECL extern "C" {
|
||||
# define LDAP_END_DECL }
|
||||
#else
|
||||
|
|
@ -20,9 +20,8 @@
|
|||
# define LDAP_END_DECL /* end declarations */
|
||||
#endif
|
||||
|
||||
#if !defined(__NO_PROTOTYPES) && ( \
|
||||
defined(__STDC__) || defined(__cplusplus) || \
|
||||
defined(__NEED_PROTOTYPES) )
|
||||
#if !defined(__NO_PROTOTYPES) && ( defined(__NEED_PROTOTYPES) || \
|
||||
defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) )
|
||||
|
||||
/* ANSI C or C++ */
|
||||
# define LDAP_P(protos) protos
|
||||
|
|
|
|||
Loading…
Reference in a new issue