Commit Graph

6 Commits

Author SHA1 Message Date
Romain Goyet
fc80180d46 [liba] Define ptrdiff_t 2018-10-19 10:59:17 +02:00
Romain Goyet
c5d917c360 [liba] Cleaner __builtin-based defines
Change-Id: I4b58ab36f25e9cb136c21375166921c04882dd21
2017-08-04 17:56:23 +02:00
Romain Goyet
c8e2b0d2be [liba] Define ssize_t and offsetof
Change-Id: Icbf546cd09f4e3c3e849f830bb3c60ffa3c13b6c
2017-08-04 17:55:53 +02:00
Romain Goyet
42d0bd045a [liba] Update the size_t definition
Change-Id: I88bf9b82956c471e5da53525e98af89bfaab5d48
2016-09-21 14:09:35 +02:00
Romain Goyet
e24d8a55fb [liba] Update the size_t type definition
size_t must be an unsigned it. Moreover, by definition, size_t is the
return type of the "sizeof" operator, which is defined by the compiler.
Both GCC and clang define a __SIZE_TYPE__ macro to let the libc header
know about the type used by the sizeof operator.

Change-Id: Ie44f1ba69fe2b1d5ce5cd9a0e7fd8a7f10c1199d
2016-09-21 14:03:52 +02:00
Romain Goyet
1b4b2638f7 [liba] Use stddef.h
Change-Id: I6bd0999d173488e4aff989bdb1bfa93229de7eaa
2016-07-05 13:27:33 +02:00