aboutsummaryrefslogtreecommitdiffstats
path: root/examples/performance-thread/common/lthread_queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/performance-thread/common/lthread_queue.h')
-rw-r--r--examples/performance-thread/common/lthread_queue.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/performance-thread/common/lthread_queue.h b/examples/performance-thread/common/lthread_queue.h
index 2c55fcec..4fc2074e 100644
--- a/examples/performance-thread/common/lthread_queue.h
+++ b/examples/performance-thread/common/lthread_queue.h
@@ -69,6 +69,10 @@
#ifndef LTHREAD_QUEUE_H_
#define LTHREAD_QUEUE_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <string.h>
#include <rte_prefetch.h>
@@ -298,5 +302,8 @@ _lthread_queue_remove(struct lthread_queue *q)
return NULL;
}
+#ifdef __cplusplus
+}
+#endif
#endif /* LTHREAD_QUEUE_H_ */