ARC: MWDT: workaround for double clockid_t definition
Don't define clockid_t in Zephyr in case of ARC MWDT libc is used as ARC MWDT libc provides clockid_t. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
parent
8097989a01
commit
5d2be3d085
1 changed files with 2 additions and 2 deletions
|
@ -22,11 +22,11 @@ typedef unsigned long useconds_t;
|
|||
#endif
|
||||
|
||||
/* time related attributes */
|
||||
#ifndef CONFIG_NEWLIB_LIBC
|
||||
#if !defined(CONFIG_NEWLIB_LIBC) && !defined(CONFIG_ARCMWDT_LIBC)
|
||||
#ifndef __clockid_t_defined
|
||||
typedef uint32_t clockid_t;
|
||||
#endif
|
||||
#endif /*CONFIG_NEWLIB_LIBC */
|
||||
#endif /* !CONFIG_NEWLIB_LIBC && !CONFIG_ARCMWDT_LIBC */
|
||||
#ifndef __timer_t_defined
|
||||
typedef unsigned long timer_t;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue