diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ChangeLog | 10 | ||||
| -rw-r--r-- | src/include/win-mac.h | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 4bcb53f2af..c1b36045a0 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,5 +1,15 @@ 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 64-bit ints to unsigned char fields to avoid warnings diff --git a/src/include/win-mac.h b/src/include/win-mac.h index 16d1062e87..b7519d7527 100644 --- a/src/include/win-mac.h +++ b/src/include/win-mac.h @@ -30,6 +30,11 @@ #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 |
