update stdint.h to include c99 types
authorbunnie <bunnie@kosagi.com>
Sun, 2 Jun 2019 22:26:18 +0000 (22:26 +0000)
committerbunnie <bunnie@kosagi.com>
Sun, 2 Jun 2019 22:27:12 +0000 (22:27 +0000)
needed for some third party libraries to compile

litex/soc/software/include/base/stdint.h

index 90332e394299f3c02ff31f7cb8bf914909545b14..6b81cd1b72e9d911988a9966f4ee538a5218d4b0 100644 (file)
@@ -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)