ARC: MWDT: workaround missing ssize_t definition
ARC MWDT don't provide ssize_t type which is used in Zephyr. Define ssize_t for ARC MWDT toolchain. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
parent
a5788ff12d
commit
e0a9a93cb5
1 changed files with 11 additions and 0 deletions
|
@ -61,6 +61,17 @@
|
||||||
|
|
||||||
#else /* defined(_ASMLANGUAGE) */
|
#else /* defined(_ASMLANGUAGE) */
|
||||||
|
|
||||||
|
/* MWDT toolchain misses ssize_t definition which is used by Zephyr */
|
||||||
|
#ifndef _SSIZE_T_DEFINED
|
||||||
|
#define _SSIZE_T_DEFINED
|
||||||
|
#ifdef CONFIG_64BIT
|
||||||
|
typedef long ssize_t;
|
||||||
|
#else
|
||||||
|
typedef int ssize_t;
|
||||||
|
#endif
|
||||||
|
#endif /* _SSIZE_T_DEFINED */
|
||||||
|
|
||||||
|
|
||||||
#define __no_optimization __attribute__((optnone))
|
#define __no_optimization __attribute__((optnone))
|
||||||
|
|
||||||
#include <toolchain/gcc.h>
|
#include <toolchain/gcc.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue