From 0e1bed0452c2f0ddb16391ccc4f3a0ddee381bb1 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Wed, 5 Apr 2023 07:59:12 +0200 Subject: [PATCH] Added the uint32_t type, will have to clean the mess up in this file someday --- include/wm_type_def.h | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/include/wm_type_def.h b/include/wm_type_def.h index dc1a8e7..2701a34 100644 --- a/include/wm_type_def.h +++ b/include/wm_type_def.h @@ -51,7 +51,6 @@ typedef unsigned char INT8U; #endif typedef signed char INT8S; -//typedef unsigned char bool; typedef unsigned char u8; typedef signed char s8; typedef unsigned short u16; @@ -78,25 +77,55 @@ typedef int int32_t; typedef unsigned int uint32_t; #endif +#ifdef int64 +#undef int64 +#endif +typedef long long int64; + +#ifdef int64_t +#undef int64_t +#endif +typedef long long int64_t; + +#ifdef uint64 +#undef uint64 +#endif +typedef unsigned long long uint64; + +#ifdef uint64_t +#undef uint64_t +#endif +typedef unsigned long long uint64_t; + #ifdef int32 #undef int32 #endif typedef int int32; +#ifdef int32_t +#undef int32_t +#endif +typedef int int32_t; + #ifdef uint32 #undef uint32 #endif typedef unsigned int uint32; +#ifdef uint32_t +#undef uint32_t +#endif +typedef unsigned int uint32_t; + #ifdef int16 #undef int16 #endif -typedef short int16; +typedef short int16; #ifdef uint16 #undef uint16 #endif -typedef unsigned short uint16; +typedef unsigned short uint16; #ifdef ULONG #undef ULONG @@ -108,6 +137,11 @@ typedef unsigned long ULONG; #endif typedef unsigned char u8_t; +#ifdef int8_t +#undef int8_t +#endif +typedef signed char int8_t; + #ifdef uint8_t #undef uint8_t #endif @@ -128,7 +162,6 @@ typedef unsigned short uint16_t; #endif typedef unsigned int u32_t; - #ifdef s8_t #undef s8_t #endif