From 17e30cb85d257b0f0bb858304f1c04460f7eb25e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Fri, 31 Oct 2025 20:46:29 +0000 Subject: [PATCH] j git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@535 b9cfdab3-6d41-4d17-bbe4-086880011989 --- include/Mw/BaseTypes.h | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/include/Mw/BaseTypes.h b/include/Mw/BaseTypes.h index 9a0ef28..ed251b9 100644 --- a/include/Mw/BaseTypes.h +++ b/include/Mw/BaseTypes.h @@ -16,18 +16,58 @@ typedef unsigned char MwBool; #define MwTRUE ((MwBool)1) #define MwFALSE ((MwBool)0) -#if __STDC_VERSION__ >= 199901L || __GNUC__ > 2 +#if __STDC_VERSION__ >= 199901L +#include + +typedef int64_t MwI64; +typedef uint64_t MwU64; + +typedef int32_t MwI32; +typedef uint32_t MwU32; + +typedef int16_t MwI16; +typedef uint16_t MwU16; + +typedef int8_t MwI8; +typedef uint8_t MwU8; + +#define OTHER_TYPES_DEFINED +#elif __GNUC__ > 2 typedef long long MwI64; typedef unsigned long long MwU64; #elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) typedef __int64 MwI64; typedef unsigned __int64 MwU64; + +typedef __int32 MwI32; +typedef unsigned __int32 MwU32; + +typedef __int16 MwI16; +typedef unsigned __int16 MwU16; + +typedef __int8 MwI8; +typedef unsigned __int8 MwU8; + +#define OTHOTHER_TYPES_DEFINED #else /* out of hope */ typedef long MwI64; typedef unsigned long MwU64; #endif +#ifdef OTHER_TYPES_DEFINED +#undef OTHER_TYPES_DEFINED +#else +typedef int MwI32; +typedef unsigned int MwU32; + +typedef short MwI16; +typedef unsigned short MwU16; + +typedef signed char MwI8; +typedef unsigned char MwU8; +#endif + typedef MwI64 MwOffset; struct _MwPoint {