--- VC6Compat/stdint.h 2024/10/17 09:53:39 1.1 +++ VC6Compat/stdint.h 2024/10/17 10:27:38 1.5 @@ -1,8 +1,17 @@ -/* $Id: stdint.h,v 1.1 2024/10/17 09:53:39 nishi Exp $ */ +/* $Id: stdint.h,v 1.5 2024/10/17 10:27:38 nishi Exp $ */ #ifndef __STDINT_H__ #define __STDINT_H__ +#ifdef __bsdi__ +#include +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 +#else typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; @@ -11,5 +20,6 @@ typedef short int16_t; typedef int int32_t; #define INT32_MAX 0x7fffffff +#endif #endif