From: bunnie Date: Sun, 2 Jun 2019 22:26:18 +0000 (+0000) Subject: update stdint.h to include c99 types X-Git-Tag: 24jan2021_ls180~1187^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=200d413def22eed4d87bebd011944aa2bfd4c734;p=litex.git update stdint.h to include c99 types needed for some third party libraries to compile --- diff --git a/litex/soc/software/include/base/stdint.h b/litex/soc/software/include/base/stdint.h index 90332e39..6b81cd1b 100644 --- a/litex/soc/software/include/base/stdint.h +++ b/litex/soc/software/include/base/stdint.h @@ -18,6 +18,15 @@ typedef int int32_t; typedef short int16_t; typedef char int8_t; +typedef char int_least8_t; +typedef unsigned char uint_least8_t; +typedef short int_least16_t; +typedef unsigned short uint_least16_t; +typedef int int_least32_t; +typedef unsigned int uint_least32_t; +typedef long long int_least64_t; +typedef unsigned long long uint_least64_t; + #define __int_c_join(a, b) a ## b #define __int_c(v, suffix) __int_c_join(v, suffix) #define __uint_c(v, suffix) __int_c_join(v##U, suffix)