aboutsummaryrefslogtreecommitdiff
path: root/openamp/src/libmetal/errno.h
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2023-02-14 13:52:59 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2023-02-15 14:07:27 +0100
commitd88c1c55da398c1e9935cffe412f079a5e6c7a81 (patch)
treee28c4afc8079bcc667c872e2871cfe7ea48a00dc /openamp/src/libmetal/errno.h
parent02eef5bbaac09cfdcf498324663c10b737677ac1 (diff)
downloadethos-u-core-software-d88c1c55da398c1e9935cffe412f079a5e6c7a81.tar.gz
Fix compilation warnings for OpenAMP23.02-rc223.02
Add support for ArmClang including the correct errno.h. Silence warnings about unsupported pragma. Change-Id: Ieb88938399679ddc39f7b8c390e41afef2b46606
Diffstat (limited to 'openamp/src/libmetal/errno.h')
-rw-r--r--openamp/src/libmetal/errno.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/openamp/src/libmetal/errno.h b/openamp/src/libmetal/errno.h
new file mode 100644
index 0000000..c933a0c
--- /dev/null
+++ b/openamp/src/libmetal/errno.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2020 STMicroelectronnics. All rights reserved.
+ * SPDX-FileCopyrightText: Copyright 2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/*
+ * @file metal/errno.h
+ * @brief error specific primitives for libmetal.
+ */
+
+#ifndef __METAL_ERRNO__H__
+#define __METAL_ERRNO__H__
+
+#if defined(__ICCARM__)
+# include <metal/compiler/iar/errno.h>
+#elif defined(__CC_ARM) || defined (__ARMCC_VERSION)
+# include <metal/compiler/armcc/errno.h>
+#else
+# include <errno.h>
+#endif
+
+#endif /* __METAL_ERRNO__H__ */