projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ba302
)
define SSIZE_MAX forWindows
author
Ken Raeburn
<raeburn@mit.edu>
Wed, 11 Feb 2009 00:16:23 +0000
(
00:16
+0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Wed, 11 Feb 2009 00:16:23 +0000
(
00:16
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21956
dc483132
-0cff-0310-8789-
dd5450dbe970
src/include/k5-platform.h
patch
|
blob
|
history
diff --git
a/src/include/k5-platform.h
b/src/include/k5-platform.h
index 1485a1deca0bdb52efd4ee17a0e8f834a6249545..5bdde37aa587718537e68e1b28b1c72af673d96a 100644
(file)
--- 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. */