aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/abi-default/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/odp/api/abi-default/version.h')
-rw-r--r--include/odp/api/abi-default/version.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/odp/api/abi-default/version.h b/include/odp/api/abi-default/version.h
new file mode 100644
index 000000000..f15058623
--- /dev/null
+++ b/include/odp/api/abi-default/version.h
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright (c) 2015-2018 Linaro Limited
+ */
+
+#ifndef ODP_ABI_VERSION_H_
+#define ODP_ABI_VERSION_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** @internal Version string expand */
+#define ODP_VERSION_STR_EXPAND(x) #x
+
+/** @internal Version to string */
+#define ODP_VERSION_TO_STR(x) ODP_VERSION_STR_EXPAND(x)
+
+/** @internal API version string */
+#define ODP_VERSION_API_STR \
+ODP_VERSION_TO_STR(ODP_VERSION_API_GENERATION) "." \
+ODP_VERSION_TO_STR(ODP_VERSION_API_MAJOR) "." \
+ODP_VERSION_TO_STR(ODP_VERSION_API_MINOR)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif