From 835b6b5c767d53f462d06b42b074dc5cdf262380 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 11 Feb 2009 00:16:23 +0000 Subject: [PATCH] define SSIZE_MAX forWindows git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21956 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-platform.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h index 1485a1dec..5bdde37aa 100644 --- a/src/include/k5-platform.h +++ b/src/include/k5-platform.h @@ -427,6 +427,10 @@ typedef struct { int error; unsigned char did_run; } k5_init_t; # define UINT64_MAX ((UINT64_TYPE)((UINT64_TYPE)0 - 1)) #endif +#ifdef _WIN32 +# define SSIZE_MAX ((ssize_t)(SIZE_MAX/2)) +#endif + /* Read and write integer values as (unaligned) octet strings in specific byte orders. Add per-platform optimizations as needed. */ -- 2.26.2