Add macro so we don't print deprecated warnings while building KfM
authorAlexandra Ellwood <lxs@mit.edu>
Wed, 9 Jul 2008 21:18:51 +0000 (21:18 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Wed, 9 Jul 2008 21:18:51 +0000 (21:18 +0000)
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
src/include/kerberosIV/krb.h

index 0835224055573f6dd7afacd480c7030114e10609..9f9d3a85e83a9cad4f008251e477699c02fdd623 100644 (file)
@@ -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__) */
 
index 054acc5dafe43970ca2e602ecdcaaa4768359aac..b11a6b69ddaac580e324254d3980943eb1c63dcf 100644 (file)
@@ -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