aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_forward_typedefs_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/include/odp_forward_typedefs_internal.h')
-rw-r--r--platform/linux-generic/include/odp_forward_typedefs_internal.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_forward_typedefs_internal.h b/platform/linux-generic/include/odp_forward_typedefs_internal.h
new file mode 100644
index 0000000..f8832f7
--- /dev/null
+++ b/platform/linux-generic/include/odp_forward_typedefs_internal.h
@@ -0,0 +1,32 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/**
+ * @file
+ *
+ * ODP forward typedefs - implementation internal
+ *
+ * This needs to be a separate file because it is needed by both
+ * odp_queue_internal.h and odp_buffer_internal.h and clang prohibits forward
+ * "redefining" typedefs. Note that this file can be extended with additional
+ * forward typedefs as needed.
+ */
+
+#ifndef ODP_FORWARD_TYPEDEFS_INTERNAL_H_
+#define ODP_FORWARD_TYPEDEFS_INTERNAL_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct odp_buffer_hdr_t odp_buffer_hdr_t;
+typedef union queue_entry_u queue_entry_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif