]> git.droids-corp.org - dpdk.git/blobdiff - examples/performance-thread/common/arch/x86/ctx.h
net/virtio: fix incorrect cast of void *
[dpdk.git] / examples / performance-thread / common / arch / x86 / ctx.h
index 03860508e9c1ac81f9db62c6b63945471680fde5..a41ce05a5f4d470792514b3f3002fbd01721c0f8 100644 (file)
 #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_ */