--- VC6Compat/stdint.h 2024/10/17 10:22:27 1.4 +++ VC6Compat/stdint.h 2024/11/03 13:49:38 1.6 @@ -1,4 +1,4 @@ -/* $Id: stdint.h,v 1.4 2024/10/17 10:22:27 nishi Exp $ */ +/* $Id: stdint.h,v 1.6 2024/11/03 13:49:38 nishi Exp $ */ #ifndef __STDINT_H__ #define __STDINT_H__ @@ -9,6 +9,10 @@ typedef u_int8_t uint8_t; typedef u_int16_t uint16_t; typedef u_int32_t uint32_t; typedef u_int64_t uint64_t; + +#define INT32_MAX 0x7fffffff +#elif defined(__sun__) +#include #else typedef unsigned char uint8_t; typedef unsigned short uint16_t;