From 897d3a3cc4b84f1ce4f598f048c4588b5acb81f9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 1 Apr 2015 20:34:08 +0200 Subject: Add for FreeBSD compatibility * libc/include/sys/_stdint.h: New file. * libc/include/stdint.h (int8_t): Move to . (uint8_t): Likewise. (int16_t): Likewise. (uint16_t): Likewise. (int32_t): Likewise. (uint32_t): Likewise. (int64_t): Likewise. (uint64_t): Likewise. (intptr_t): Likewise. (uintptr_t): Likewise. * libc/include/sys/types.h: Include . * libc/sys/rtems/machine/_types.h: Remove include. * libc/sys/time.h>: Replace __uint32_t with uint32_t and __uint64_t with uint64_t. Signed-off-by: Corinna Vinschen --- newlib/libc/include/sys/_stdint.h | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 newlib/libc/include/sys/_stdint.h (limited to 'newlib/libc/include/sys/_stdint.h') diff --git a/newlib/libc/include/sys/_stdint.h b/newlib/libc/include/sys/_stdint.h new file mode 100644 index 000000000..add1860c5 --- /dev/null +++ b/newlib/libc/include/sys/_stdint.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2004, 2005 by + * Ralf Corsepius, Ulm/Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +#ifndef _SYS__STDINT_H +#define _SYS__STDINT_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef ___int8_t_defined +typedef __int8_t int8_t ; +typedef __uint8_t uint8_t ; +#define __int8_t_defined 1 +#endif + +#ifdef ___int16_t_defined +typedef __int16_t int16_t ; +typedef __uint16_t uint16_t ; +#define __int16_t_defined 1 +#endif + +#ifdef ___int32_t_defined +typedef __int32_t int32_t ; +typedef __uint32_t uint32_t ; +#define __int32_t_defined 1 +#endif + +#ifdef ___int64_t_defined +typedef __int64_t int64_t ; +typedef __uint64_t uint64_t ; +#define __int64_t_defined 1 +#endif + +typedef __intptr_t intptr_t; +typedef __uintptr_t uintptr_t; + +#ifdef __cplusplus +} +#endif + +#endif /* _SYS__STDINT_H */ -- cgit v1.2.3