Windows needs k5-platform helper function declared explicitly.
Change definition of ccs_pipe_t for windows.
#define strdup -- it's now deprecated on windows.
TargetVersion: 1.7
Component: krb5-libs
Ticket: 5594
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20201
dc483132-0cff-0310-8789-
dd5450dbe970
/*
* $Header$
*
- * Copyright 2006 Massachusetts Institute of Technology.
+ * Copyright 2007, 2008 Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
#include "cci_common.h"
#include "cci_os_debugging.h"
+#ifdef WIN32
+char* eol = "\n";
+#else
+char* eol = "";
+#endif
+
/* ------------------------------------------------------------------------ */
cc_int32 _cci_check_error (cc_int32 in_error,
{
/* Do not log for flow control errors or when there is no error at all */
if (in_error != ccNoError && in_error != ccIteratorEnd) {
- cci_debug_printf ("%s() got %d at %s: %d", in_function,
- in_error, in_file, in_line);
+ cci_debug_printf ("%s() got %d at %s: %d%s", in_function,
+ in_error, in_file, in_line, eol);
}
return in_error;
MAKE_INIT_FUNCTION(cci_thread_init);
+#ifdef WIN32
+void cci_thread_init_helper() {
+ cci_thread_init__auxinit();
+ }
+#endif
+
/* ------------------------------------------------------------------------ */
static int cci_thread_init (void)
cc_context_t in_compare_to_context,
cc_uint32 *out_equal);
+#ifdef WIN32
+void cci_thread_init_helper();
+#endif
+
+
#endif /* CCAPI_CONTEXT_H */
#else
#ifdef WIN32
-/* On Windows, a pipe is the name of the endpoint to which to send the reply: */
-typedef char* ccs_pipe_t;
-#define CCS_PIPE_NULL (char*)NULL
+/* On Windows, a pipe is s struct: */
+#include "ccs_win_pipe.h"
+typedef struct ccs_win_pipe_t* ccs_pipe_t;
+#define CCS_PIPE_NULL (ccs_pipe_t)NULL
#else
typedef int ccs_pipe_t; /* Unix domain socket */
#endif
#endif
+
#ifdef TARGET_OS_MAC
#pragma mark -
#endif
#define strncasecmp strnicmp
#endif
+/* VS2005 has deprecated strdup */
+#ifndef strdup
+#define strdup _strdup
+#endif
+
HINSTANCE get_lib_instance(void);
#define GETSOCKNAME_ARG2_TYPE struct sockaddr