@@ -161,4 +161,5 @@ __LIB__libodp_la_SOURCES = \
odp_ticketlock.c \
odp_time.c \
odp_timer.c \
+ odp_version.c \
odp_weak.c
@@ -18,20 +18,6 @@ extern "C" {
#endif
#include <odp/plat/version_types.h>
-
-/** @ingroup odp_ver_abt_log_dbg
- * @{
- */
-
-static inline const char *odp_version_api_str(void)
-{
- return ODP_VERSION_API_STR;
-}
-
-/**
- * @}
- */
-
#include <odp/api/version.h>
#ifdef __cplusplus
new file mode 100644
@@ -0,0 +1,17 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
+#include <odp/api/version.h>
+#include <odp/plat/version_types.h>
+
+const char *odp_version_api_str(void)
+{
+ return ODP_VERSION_API_STR;
+}
Api version is defined as non static. Move it to c file. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- platform/linux-generic/Makefile.am | 1 + platform/linux-generic/include/odp/version.h | 14 -------------- platform/linux-generic/odp_version.c | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 platform/linux-generic/odp_version.c