Switch to macros for c++ extern "C" to please editors that want to autoindent

This commit is contained in:
Love Hornquist Astrand
2009-07-23 19:27:34 +02:00
parent f4c8242667
commit 1dd94e44ba
4 changed files with 16 additions and 24 deletions

View File

@@ -63,6 +63,14 @@
#endif #endif
#endif #endif
#ifdef __cplusplus
#define GSSAPI_CPP_START extern "C" {
#define GSSAPI_CPP_END }
#else
#define GSSAPI_CPP_START
#define GSSAPI_CPP_END
#endif
/* /*
* Now define the three implementation-dependent types. * Now define the three implementation-dependent types.
*/ */
@@ -243,9 +251,7 @@ typedef OM_uint32 gss_qop_t;
#define GSS_IOV_BUFFER_TYPE(_t) ((_t) & ~GSS_IOV_BUFFER_TYPE_FLAG_MASK) #define GSS_IOV_BUFFER_TYPE(_t) ((_t) & ~GSS_IOV_BUFFER_TYPE_FLAG_MASK)
#define GSS_IOV_BUFFER_FLAGS(_t) ((_t) & GSS_IOV_BUFFER_TYPE_FLAG_MASK) #define GSS_IOV_BUFFER_FLAGS(_t) ((_t) & GSS_IOV_BUFFER_TYPE_FLAG_MASK)
#ifdef __cplusplus GSSAPI_CPP_START
extern "C" {
#endif
/* /*
* The implementation must reserve static storage for a * The implementation must reserve static storage for a
@@ -894,8 +900,6 @@ OM_uint32 GSSAPI_LIB_FUNCTION
gss_release_iov_buffer(OM_uint32 *, gss_iov_buffer_desc *, int); gss_release_iov_buffer(OM_uint32 *, gss_iov_buffer_desc *, int);
#ifdef __cplusplus GSSAPI_CPP_END
}
#endif
#endif /* GSSAPI_GSSAPI_H_ */ #endif /* GSSAPI_GSSAPI_H_ */

View File

@@ -38,9 +38,7 @@
#include <gssapi.h> #include <gssapi.h>
#ifdef __cplusplus GSSAPI_CPP_START
extern "C" {
#endif
#if !defined(__GNUC__) && !defined(__attribute__) #if !defined(__GNUC__) && !defined(__attribute__)
#define __attribute__(x) #define __attribute__(x)
@@ -246,8 +244,6 @@ gss_krb5_set_allowable_enctypes(OM_uint32 *minor_status,
OM_uint32 num_enctypes, OM_uint32 num_enctypes,
int32_t *enctypes); int32_t *enctypes);
#ifdef __cplusplus GSSAPI_CPP_END
}
#endif
#endif /* GSSAPI_SPNEGO_H_ */ #endif /* GSSAPI_SPNEGO_H_ */

View File

@@ -38,14 +38,10 @@
#include <gssapi.h> #include <gssapi.h>
#ifdef __cplusplus GSSAPI_CPP_START
extern "C" {
#endif
extern GSSAPI_LIB_VARIABLE gss_OID GSS_NTLM_MECHANISM; extern GSSAPI_LIB_VARIABLE gss_OID GSS_NTLM_MECHANISM;
#ifdef __cplusplus GSSAPI_CPP_END
}
#endif
#endif /* GSSAPI_NTLM_H_ */ #endif /* GSSAPI_NTLM_H_ */

View File

@@ -38,9 +38,7 @@
#include <gssapi.h> #include <gssapi.h>
#ifdef __cplusplus GSSAPI_CPP_START
extern "C" {
#endif
/* /*
* RFC2478, SPNEGO: * RFC2478, SPNEGO:
@@ -51,8 +49,6 @@ extern "C" {
extern GSSAPI_LIB_VARIABLE gss_OID GSS_SPNEGO_MECHANISM; extern GSSAPI_LIB_VARIABLE gss_OID GSS_SPNEGO_MECHANISM;
#define gss_mech_spnego GSS_SPNEGO_MECHANISM #define gss_mech_spnego GSS_SPNEGO_MECHANISM
#ifdef __cplusplus GSSAPI_CPP_END
}
#endif
#endif /* GSSAPI_SPNEGO_H_ */ #endif /* GSSAPI_SPNEGO_H_ */