newlib: Fix header issues with C++ guards and implicit inclusion

* Added C++ sentinels if missed
* Used #pragma once, removed macro's with leading underscores
* Updated copyright checker to allow "BSD-2-Clause-FreeBSD AND
Apache-2.0" for newlib files
* Fixed minor compilation issues/implicit inclusions
This commit is contained in:
David Cermak
2022-07-04 11:53:42 +02:00
parent 48c5b45e99
commit adb79a4852
8 changed files with 48 additions and 16 deletions

View File

@@ -50,6 +50,10 @@
*/
#include <machine/endian.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* General byte order swapping functions.
*/
@@ -198,3 +202,7 @@ le64enc(void *pp, uint64_t u)
le32enc(p, (uint32_t)(u & 0xffffffffU));
le32enc(p + 4, (uint32_t)(u >> 32));
}
#ifdef __cplusplus
}
#endif