mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-09-21 08:53:47 +08:00
lib: include metal/errno instead of errno.h
include metal/errno to better support non GCC compilers. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
This commit is contained in:
+1
-1
@@ -5,9 +5,9 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <metal/assert.h>
|
||||
#include <metal/device.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/list.h>
|
||||
#include <metal/log.h>
|
||||
#include <metal/sys.h>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <string.h>
|
||||
#include <metal/device.h>
|
||||
#include <metal/log.h>
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/io.h>
|
||||
#include <metal/sys.h>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq.h>
|
||||
#include <metal/irq_controller.h>
|
||||
#include <metal/list.h>
|
||||
|
||||
+1
-1
@@ -9,8 +9,8 @@
|
||||
* @brief Generic libmetal shared memory handling.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/assert.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/shmem.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/utilities.h>
|
||||
|
||||
+1
-1
@@ -4,8 +4,8 @@
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/atomic.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq.h>
|
||||
#include <metal/irq_controller.h>
|
||||
#include <metal/log.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @brief FreeRTOS libmetal irq definitions.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/log.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @brief generic libmetal Xilinx irq controller definitions.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq_controller.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/log.h>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <metal/atomic.h>
|
||||
#include <stdint.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @brief generic libmetal irq definitions.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/log.h>
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#ifndef __METAL_GENERIC_SYS__H__
|
||||
#define __METAL_GENERIC_SYS__H__
|
||||
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <metal/errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @brief generic libmetal Xilinx irq controller definitions.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq_controller.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/log.h>
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <linux/futex.h>
|
||||
#include <metal/atomic.h>
|
||||
#include <metal/errno.h>
|
||||
#include <stdint.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
#ifndef __METAL_LINUX_SYS__H__
|
||||
#define __METAL_LINUX_SYS__H__
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <libgen.h>
|
||||
#include <limits.h>
|
||||
#include <metal/errno.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @brief NuttX libmetal irq definitions.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq_controller.h>
|
||||
#include <metal/alloc.h>
|
||||
#include <nuttx/irq.h>
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
#ifndef __METAL_ZEPHYR_CONDITION__H__
|
||||
#define __METAL_ZEPHYR_CONDITION__H__
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/atomic.h>
|
||||
#include <metal/errno.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @brief Zephyr libmetal irq definitions.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <metal/errno.h>
|
||||
#include <metal/irq.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/log.h>
|
||||
|
||||
Reference in New Issue
Block a user