summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Gondois <Pierre.Gondois@arm.com>2020-12-22 10:46:19 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-04-15 19:53:39 +0000
commitf21e72135dee2eb835d80d0669dee45cf90db37a (patch)
treebefa1d126b26328b8ed5485dec324c328e055bb6
parent152015fa6515c0dd35ee3fec95903af7d4458905 (diff)
downloadedk2-f21e72135dee2eb835d80d0669dee45cf90db37a.tar.gz
edk2-f21e72135dee2eb835d80d0669dee45cf90db37a.tar.bz2
edk2-f21e72135dee2eb835d80d0669dee45cf90db37a.zip
ArmPkg: Fix Ecc error 6001 in ArmSoftFloatLib
This patch fixes the following Ecc reported error: All include file contents should be guarded by a #ifndef statement. Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
-rw-r--r--ArmPkg/Library/ArmSoftFloatLib/platform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ArmPkg/Library/ArmSoftFloatLib/platform.h b/ArmPkg/Library/ArmSoftFloatLib/platform.h
index 07800a9d5b..fddf9de04d 100644
--- a/ArmPkg/Library/ArmSoftFloatLib/platform.h
+++ b/ArmPkg/Library/ArmSoftFloatLib/platform.h
@@ -1,11 +1,17 @@
/*
* Copyright (c) 2019, Linaro Limited
+ * Copyright (c) 2021, Arm Limited. All rights reserved.<BR>
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
+#ifndef ARM_SOFT_FLOAT_LIB_H_
+#define ARM_SOFT_FLOAT_LIB_H_
+
#define LITTLEENDIAN 1
#define INLINE static inline
#define SOFTFLOAT_BUILTIN_CLZ 1
#define SOFTFLOAT_FAST_INT64
#include "opts-GCC.h"
+
+#endif // ARM_SOFT_FLOAT_LIB_H_