libsp: Add missing extern "C" linkage-specification

extern "C" was added to ffa_internal_api.h and sp_api.h of libsp in
order to make them able to be used from C++.

Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I761e468a8091df1babf5b826d3c4ae2f246e06e8
diff --git a/components/messaging/ffa/libsp/include/ffa_internal_api.h b/components/messaging/ffa/libsp/include/ffa_internal_api.h
index bfd4415..295c0b1 100644
--- a/components/messaging/ffa/libsp/include/ffa_internal_api.h
+++ b/components/messaging/ffa/libsp/include/ffa_internal_api.h
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause */
 /*
- * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
  */
 
 #ifndef LIBSP_INCLUDE_FFA_INTERNAL_API_H_
@@ -14,6 +14,10 @@
 
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifdef ARM32
 struct ffa_params {
 	uint32_t a0;	/**< Function ID */
@@ -50,4 +54,8 @@
 	     uint64_t a5, uint64_t a6, uint64_t a7, struct ffa_params *result);
 #endif /* ARM64 */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LIBSP_INCLUDE_FFA_INTERNAL_API_H_ */
diff --git a/components/messaging/ffa/libsp/include/sp_api.h b/components/messaging/ffa/libsp/include/sp_api.h
index e188560..3c432bb 100644
--- a/components/messaging/ffa/libsp/include/sp_api.h
+++ b/components/messaging/ffa/libsp/include/sp_api.h
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause */
 /*
- * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
  */
 
 #ifndef LIBSP_INCLUDE_SP_API_H_
@@ -10,6 +10,10 @@
 #include "compiler.h"  // for __noreturn
 #include "ffa_api.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Interface for the SP implementation
  */
@@ -30,4 +34,8 @@
  */
 void __noreturn sp_main(struct ffa_init_info *init_info);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LIBSP_INCLUDE_SP_API_H_ */