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
#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"
#if TARGET_OS_MAC
#warning Workaround for AppleConnect crash causes leak
#include <CoreFoundation/CoreFoundation.h>
+#else
+#pragma warning (disable: 4068)
#endif
/* ------------------------------------------------------------------------ */