diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-04-15 13:44:25 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-04-15 14:51:40 +0200 |
commit | 770e94f3fdae6b49964739c43127ff52284ac0e3 (patch) | |
tree | 81a60c27a07c8ca325b6d9ba8f9a0137949f47db /newlib/libc/include/sys | |
parent | 75ab33bd5ed5049c2e7c66cb8f72112698d5adef (diff) | |
download | cygnal-770e94f3fdae6b49964739c43127ff52284ac0e3.tar.gz cygnal-770e94f3fdae6b49964739c43127ff52284ac0e3.tar.bz2 cygnal-770e94f3fdae6b49964739c43127ff52284ac0e3.zip |
Add BSD guards for fixed-size integer types
Signed-off-by: Christian Mauderer <christian.mauderer@embedded-brains.de>
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r-- | newlib/libc/include/sys/_stdint.h | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/newlib/libc/include/sys/_stdint.h b/newlib/libc/include/sys/_stdint.h index add1860c5..a7fe1e4f5 100644 --- a/newlib/libc/include/sys/_stdint.h +++ b/newlib/libc/include/sys/_stdint.h @@ -16,31 +16,62 @@ extern "C" { #endif #ifdef ___int8_t_defined +#ifndef _INT8_T_DECLARED typedef __int8_t int8_t ; +#define _INT8_T_DECLARED +#endif +#ifndef _UINT8_T_DECLARED typedef __uint8_t uint8_t ; -#define __int8_t_defined 1 +#define _UINT8_T_DECLARED #endif +#define __int8_t_defined 1 +#endif /* ___int8_t_defined */ #ifdef ___int16_t_defined +#ifndef _INT16_T_DECLARED typedef __int16_t int16_t ; +#define _INT16_T_DECLARED +#endif +#ifndef _UINT16_T_DECLARED typedef __uint16_t uint16_t ; -#define __int16_t_defined 1 +#define _UINT16_T_DECLARED #endif +#define __int16_t_defined 1 +#endif /* ___int16_t_defined */ #ifdef ___int32_t_defined +#ifndef _INT32_T_DECLARED typedef __int32_t int32_t ; +#define _INT32_T_DECLARED +#endif +#ifndef _UINT32_T_DECLARED typedef __uint32_t uint32_t ; -#define __int32_t_defined 1 +#define _UINT32_T_DECLARED #endif +#define __int32_t_defined 1 +#endif /* ___int32_t_defined */ #ifdef ___int64_t_defined +#ifndef _INT64_T_DECLARED typedef __int64_t int64_t ; +#define _INT64_T_DECLARED +#endif +#ifndef _UINT64_T_DECLARED typedef __uint64_t uint64_t ; -#define __int64_t_defined 1 +#define _UINT64_T_DECLARED #endif +#define __int64_t_defined 1 +#endif /* ___int64_t_defined */ +#ifndef INTPTR_T_DECLARED typedef __intptr_t intptr_t; +#define _INTPTR_T_DECLARED +#endif + +#ifndef _UINTPTR_T_DECLARED typedef __uintptr_t uintptr_t; +#define _UINTPTR_T_DECLARED +#endif #ifdef __cplusplus } |