time_t: define using a fixed-width type
Make sure type_t and suseconds_t keep the same size on 32-bit and 64-bit targets. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
aa9228854f
commit
eeb2e67f2b
1 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,8 @@
|
|||
#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_TYPES_H_
|
||||
#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_TYPES_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef unsigned int mode_t;
|
||||
|
||||
#if !defined(__ssize_t_defined)
|
||||
|
@ -40,7 +42,7 @@ typedef int off_t;
|
|||
|
||||
#endif
|
||||
|
||||
typedef long long time_t;
|
||||
typedef long suseconds_t;
|
||||
typedef int64_t time_t;
|
||||
typedef int32_t suseconds_t;
|
||||
|
||||
#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_TYPES_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue