about summary refs log tree commit diff
path: root/posix/bits
diff options
context:
space:
mode:
Diffstat (limited to 'posix/bits')
-rw-r--r--posix/bits/types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/posix/bits/types.h b/posix/bits/types.h
index bd06e2d17e..5e22ce41bf 100644
--- a/posix/bits/types.h
+++ b/posix/bits/types.h
@@ -47,6 +47,16 @@ __extension__ typedef signed long long int __int64_t;
 __extension__ typedef unsigned long long int __uint64_t;
 #endif
 
+/* Smallest types with at least a given width.  */
+typedef __int8_t __int_least8_t;
+typedef __uint8_t __uint_least8_t;
+typedef __int16_t __int_least16_t;
+typedef __uint16_t __uint_least16_t;
+typedef __int32_t __int_least32_t;
+typedef __uint32_t __uint_least32_t;
+typedef __int64_t __int_least64_t;
+typedef __uint64_t __uint_least64_t;
+
 /* quad_t is also 64 bits.  */
 #if __WORDSIZE == 64
 typedef long int __quad_t;