From 2c5aca6eaab998271ab17792486cf67dd2e67711 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Mon, 13 Aug 2018 19:41:17 +0100 Subject: 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 --- include/lib/libc/endian.h | 40 ++++++++++++---------------------------- 1 file changed, 12 insertions(+), 28 deletions(-) (limited to 'include/lib/libc/endian.h') 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 +#include +#include -#ifndef _SYS_ENDIAN_H_ -#define _SYS_ENDIAN_H_ - -#include -#include -#include - -#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 */ -- cgit v1.2.3