From 65a88b5ba9131fc7c4bf7b6c43e57412c28b3b2a Mon Sep 17 00:00:00 2001 From: Kevin Koch Date: Thu, 14 Jun 2007 17:38:11 +0000 Subject: [PATCH] Disable warnings about #pragma mark TargetVersion: 1.7 Component: krb5-libs Ticket: 19569 Subj: Tweaks for 1.7 build on Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19574 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ccapi/common/cci_common.h | 16 +++++++++------- src/ccapi/lib/ccapi_ccache.c | 2 ++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/ccapi/common/cci_common.h b/src/ccapi/common/cci_common.h index a77b16c3e..ee4d42d1d 100644 --- a/src/ccapi/common/cci_common.h +++ b/src/ccapi/common/cci_common.h @@ -28,22 +28,24 @@ #define CCI_COMMON_H #include + +#if TARGET_OS_MAC #include +#include +#define VECTOR_FUNCTIONS_INITIALIZER ,NULL +#else +#include "win-mac.h" +#define VECTOR_FUNCTIONS_INITIALIZER +#endif + #include #include #include #include -#include #include #include -#if TARGET_OS_MAC -#define VECTOR_FUNCTIONS_INITIALIZER ,NULL -#else -#define VECTOR_FUNCTIONS_INITIALIZER -#endif - #define k_cci_context_initial_ccache_name "Initial default ccache" #include "cci_cred_union.h" diff --git a/src/ccapi/lib/ccapi_ccache.c b/src/ccapi/lib/ccapi_ccache.c index 5a975810c..d486b5369 100644 --- a/src/ccapi/lib/ccapi_ccache.c +++ b/src/ccapi/lib/ccapi_ccache.c @@ -34,6 +34,8 @@ #if TARGET_OS_MAC #warning Workaround for AppleConnect crash causes leak #include +#else +#pragma warning (disable: 4068) #endif /* ------------------------------------------------------------------------ */ -- 2.26.2