git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/virtio: fix incorrect cast of void *
[dpdk.git]
/
examples
/
performance-thread
/
common
/
arch
/
x86
/
ctx.h
diff --git
a/examples/performance-thread/common/arch/x86/ctx.h
b/examples/performance-thread/common/arch/x86/ctx.h
index
0386050
..
a41ce05
100644
(file)
--- 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
#ifndef CTX_H
#define CTX_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* CPU context registers
*/
/*
* CPU context registers
*/
@@
-54,4
+58,8
@@
void
ctx_switch(struct ctx *new_ctx, struct ctx *curr_ctx);
ctx_switch(struct ctx *new_ctx, struct ctx *curr_ctx);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* RTE_CTX_H_ */
#endif /* RTE_CTX_H_ */