aboutsummaryrefslogtreecommitdiff
path: root/include/gssapi
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-06-30 07:46:22 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-06-30 07:46:22 +0000
commit3fbceebb4af85423548ff31c942629c8aac07dfe (patch)
tree828e732e9164b9a1e5a21aaa549d380b38bc00cf /include/gssapi
parent33cfdcc3ba5c4449af7b33d4c049055e108fbe6c (diff)
Notes
Diffstat (limited to 'include/gssapi')
-rw-r--r--include/gssapi/gssapi.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/gssapi/gssapi.h b/include/gssapi/gssapi.h
index 032e78495f9e..bd2722c9a582 100644
--- a/include/gssapi/gssapi.h
+++ b/include/gssapi/gssapi.h
@@ -44,6 +44,33 @@ typedef __ssize_t ssize_t;
#define _SSIZE_T_DECLARED
#endif
+/* Compatibility with Heimdal 1.5.1 */
+#ifndef GSSAPI_CPP_START
+#ifdef __cplusplus
+#define GSSAPI_CPP_START extern "C" {
+#define GSSAPI_CPP_END }
+#else
+#define GSSAPI_CPP_START
+#define GSSAPI_CPP_END
+#endif
+#endif
+
+/* Compatibility with Heimdal 1.5.1 */
+#ifndef BUILD_GSSAPI_LIB
+#define GSSAPI_LIB_FUNCTION
+#define GSSAPI_LIB_CALL
+#define GSSAPI_LIB_VARIABLE
+#endif
+
+/* Compatibility with Heimdal 1.5.1 */
+#ifndef GSSAPI_DEPRECATED_FUNCTION
+#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
+#define GSSAPI_DEPRECATED_FUNCTION(X) __attribute__((deprecated))
+#else
+#define GSSAPI_DEPRECATED_FUNCTION(X)
+#endif
+#endif
+
#if 0
/*
* If the platform supports the xom.h header file, it should be