From 5829611b38efec62f9cbdefc7aa521a217c05121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 28 Aug 2008 01:12:45 +0000 Subject: [PATCH] use macro git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23706 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/gssapi/gssapi/gssapi_krb5.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/gssapi/gssapi/gssapi_krb5.h b/lib/gssapi/gssapi/gssapi_krb5.h index c40a08aef..64c923099 100644 --- a/lib/gssapi/gssapi/gssapi_krb5.h +++ b/lib/gssapi/gssapi/gssapi_krb5.h @@ -46,6 +46,11 @@ extern "C" { #define __attribute__(x) #endif +#ifdef GSSKRB5_FUNCTION_DEPRECATED +#define GSSKRB5_FUNCTION_DEPRECATED __attribute__((deprecated)) +#endif + + /* * This is for kerberos5 names. */ @@ -142,7 +147,7 @@ struct gsskrb5_send_to_kdc { OM_uint32 GSSAPI_LIB_FUNCTION gsskrb5_set_send_to_kdc(struct gsskrb5_send_to_kdc *) - __attribute__((deprecated)); + GSSKRB5_FUNCTION_DEPRECATED; OM_uint32 GSSAPI_LIB_FUNCTION gsskrb5_set_default_realm(const char *);