Disable warnings about #pragma mark
authorKevin Koch <kpkoch@mit.edu>
Thu, 14 Jun 2007 17:38:11 +0000 (17:38 +0000)
committerKevin Koch <kpkoch@mit.edu>
Thu, 14 Jun 2007 17:38:11 +0000 (17:38 +0000)
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
src/ccapi/lib/ccapi_ccache.c

index a77b16c3e4544af20f51822e60c5bd5ca2a31541..ee4d42d1ddec6db0d3a79efb1d7b88b80d754265 100644 (file)
 #define CCI_COMMON_H
 
 #include <sys/types.h>
+
+#if TARGET_OS_MAC
 #include <stdint.h>
+#include <unistd.h>
+#define VECTOR_FUNCTIONS_INITIALIZER ,NULL
+#else
+#include "win-mac.h"
+#define VECTOR_FUNCTIONS_INITIALIZER
+#endif
+
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 #include <com_err.h>
 
 #include <CredentialsCache.h>
 
-#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"
index 5a975810c2ac49522221c87abc64ae7fa616726a..d486b536957671ddca3c3a81c5c101a23b80498b 100644 (file)
@@ -34,6 +34,8 @@
 #if TARGET_OS_MAC
 #warning Workaround for AppleConnect crash causes leak
 #include <CoreFoundation/CoreFoundation.h>
+#else
+#pragma warning (disable: 4068)
 #endif
 
 /* ------------------------------------------------------------------------ */