]> git.sur5r.net Git - openldap/commitdiff
Support old c_plusplus...
authorKurt Zeilenga <kurt@openldap.org>
Tue, 13 Jul 1999 18:41:00 +0000 (18:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 13 Jul 1999 18:41:00 +0000 (18:41 +0000)
include/ldap_cdefs.h

index 01309341057f364f81019e0df90fe64a1a93cc09..5b82f816dcaf62baa0b436fa8071dbcdca271e84 100644 (file)
@@ -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