From: Ken Raeburn Date: Wed, 11 Feb 2009 00:16:23 +0000 (+0000) Subject: define SSIZE_MAX forWindows X-Git-Tag: krb5-1.8-alpha1~657 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=835b6b5c767d53f462d06b42b074dc5cdf262380;p=krb5.git define SSIZE_MAX forWindows git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21956 dc483132-0cff-0310-8789-dd5450dbe970 --- 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. */