aboutsummaryrefslogtreecommitdiffstats
path: root/examples/performance-thread/common/arch/x86/ctx.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/performance-thread/common/arch/x86/ctx.h')
-rw-r--r--examples/performance-thread/common/arch/x86/ctx.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/performance-thread/common/arch/x86/ctx.h b/examples/performance-thread/common/arch/x86/ctx.h
index 03860508..a41ce05a 100644
--- a/examples/performance-thread/common/arch/x86/ctx.h
+++ b/examples/performance-thread/common/arch/x86/ctx.h
@@ -35,6 +35,10 @@
#ifndef CTX_H
#define CTX_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* CPU context registers
*/
@@ -54,4 +58,8 @@ void
ctx_switch(struct ctx *new_ctx, struct ctx *curr_ctx);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* RTE_CTX_H_ */