diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-13 19:41:17 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-22 10:26:05 +0100 |
commit | 2c5aca6eaab998271ab17792486cf67dd2e67711 (patch) | |
tree | 1b8ead2e187a2032a66907d70ea3c099072577be /include/lib/libc/endian.h | |
parent | c6fdaa73633cae03e23ee62d55e2bd608bb4535c (diff) |
libc: Cleanup FreeBSD files
Remove code specific to FreeBSD so that they can be used in this
repository.
Change-Id: I5c11eb5b3c05a7fb91aed08371a1f7a0e6122a94
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/lib/libc/endian.h')
-rw-r--r-- | include/lib/libc/endian.h | 40 |
1 files changed, 12 insertions, 28 deletions
diff --git a/include/lib/libc/endian.h b/include/lib/libc/endian.h index 3cef6130..2cc4c5fc 100644 --- a/include/lib/libc/endian.h +++ b/include/lib/libc/endian.h @@ -27,34 +27,18 @@ * * $FreeBSD$ */ +/* + * Portions copyright (c) 2018, ARM Limited and Contributors. + * All rights reserved. + */ + +#ifndef ENDIAN_H +#define ENDIAN_H + +#include <cdefs.h> +#include <stdint.h> +#include <endian_.h> -#ifndef _SYS_ENDIAN_H_ -#define _SYS_ENDIAN_H_ - -#include <sys/cdefs.h> -#include <sys/_types.h> -#include <machine/endian.h> - -#ifndef _UINT8_T_DECLARED -typedef __uint8_t uint8_t; -#define _UINT8_T_DECLARED -#endif - -#ifndef _UINT16_T_DECLARED -typedef __uint16_t uint16_t; -#define _UINT16_T_DECLARED -#endif - -#ifndef _UINT32_T_DECLARED -typedef __uint32_t uint32_t; -#define _UINT32_T_DECLARED -#endif - -#ifndef _UINT64_T_DECLARED -typedef __uint64_t uint64_t; -#define _UINT64_T_DECLARED -#endif - /* * General byte order swapping functions. */ @@ -204,4 +188,4 @@ le64enc(void *pp, uint64_t u) le32enc(p + 4, (uint32_t)(u >> 32)); } -#endif /* _SYS_ENDIAN_H_ */ +#endif /* SYS_ENDIAN_H */ |