From ab3843706a8e864ed2b8fdfae0fedc07075bd7c8 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Wed, 9 Jul 2008 21:18:51 +0000 Subject: [PATCH] Add macro so we don't print deprecated warnings while building KfM Macro is defined in Kerberos5Prefix.h ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20507 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/kerberosIV/des.h | 4 ++-- src/include/kerberosIV/krb.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/kerberosIV/des.h b/src/include/kerberosIV/des.h index 083522405..9f9d3a85e 100644 --- a/src/include/kerberosIV/des.h +++ b/src/include/kerberosIV/des.h @@ -32,8 +32,8 @@ #if TARGET_RT_MAC_CFM #error "Use KfM 4.0 SDK headers for CFM compilation." #endif -#ifdef AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 -#define KRB5INT_DES_DEPRECATED AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 +#if defined(DEPRECATED_IN_MAC_OS_X_VERSION_10_5) && !defined(KRB5_SUPRESS_DEPRECATED_WARNINGS) +#define KRB5INT_DES_DEPRECATED DEPRECATED_IN_MAC_OS_X_VERSION_10_5 #endif #endif /* defined(__MACH__) && defined(__APPLE__) */ diff --git a/src/include/kerberosIV/krb.h b/src/include/kerberosIV/krb.h index 054acc5da..b11a6b69d 100644 --- a/src/include/kerberosIV/krb.h +++ b/src/include/kerberosIV/krb.h @@ -43,7 +43,7 @@ #ifndef KRB_PRIVATE #define KRB_PRIVATE 0 #endif -#ifdef DEPRECATED_IN_MAC_OS_X_VERSION_10_5 +#if defined(DEPRECATED_IN_MAC_OS_X_VERSION_10_5) && !defined(KRB5_SUPRESS_DEPRECATED_WARNINGS) #define KRB5INT_KRB4_DEPRECATED DEPRECATED_IN_MAC_OS_X_VERSION_10_5 #endif #else -- 2.26.2