diff options
Diffstat (limited to 'src/gd_intern.h')
-rw-r--r-- | src/gd_intern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gd_intern.h b/src/gd_intern.h index 2857f56..380f4db 100644 --- a/src/gd_intern.h +++ b/src/gd_intern.h @@ -31,6 +31,9 @@ #ifdef _MSC_VER #define ssize_t SSIZE_T +#define MAXSIZE_T ((SIZE_T)~ ((SIZE_T)0)) +#define MAXSSIZE_T ((SSIZE_T) (MAXSIZE_T >> 1)) +#define MINSSIZE_T ((SSIZE_T)~MAXSSIZE_T) #define SSIZE_MAX MAXSSIZE_T #endif |