From 47be141fb43c9d9c987e53ffb081a20ebc6440ed Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 13 Jul 1999 18:41:00 +0000 Subject: [PATCH] Support old c_plusplus... --- include/ldap_cdefs.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/ldap_cdefs.h b/include/ldap_cdefs.h index 0130934105..5b82f816dc 100644 --- a/include/ldap_cdefs.h +++ b/include/ldap_cdefs.h @@ -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 -- 2.39.5