are standard definitions for the MAX sizes of C types including
size_t. The MAX preprocessor variables are declared in limits.h
but limits.h is not included by any of the other header files.
We will therefore include it via win-mac.h. We must also add a
declaration of SIZE_MAX (for size_t) because Microsoft does not
provide one.
ticket: 2040
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15927
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-12-15 Jeffrey Altman <jaltman@mit.edu>
+
+ * win-mac.h: source code written to the C99 standard assumes there
+ are standard definitions for the MAX sizes of C types including
+ size_t. The MAX preprocessor variables are declared in limits.h
+ but limits.h is not included by any of the other header files.
+ We will therefore include it via win-mac.h. We must also add a
+ declaration of SIZE_MAX (for size_t) because Microsoft does not
+ provide one.
+
2003-12-15 Jeffrey Altman <jaltman@mit.edu>
* k5-platform.h: apply casts (unsigned char) to the assignments from
#define SIZEOF_LONG 4
#include <windows.h>
+#include <limits.h>
+
+#ifndef SIZE_MAX /* in case Microsoft defines max size of size_t */
+#define SIZE_MAX UINT_MAX
+#endif
#ifndef KRB5_CALLCONV
# define KRB5_CALLCONV __stdcall