libucontext.h: add C++ externs
parent
0f625a86ee
commit
4c2cfc54ac
|
@ -4,9 +4,17 @@
|
|||
#include <stddef.h>
|
||||
#include <libucontext/bits.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int libucontext_getcontext(libucontext_ucontext_t *);
|
||||
void libucontext_makecontext(libucontext_ucontext_t *, void (*)(), int, ...);
|
||||
int libucontext_setcontext(const libucontext_ucontext_t *);
|
||||
int libucontext_swapcontext(libucontext_ucontext_t *, const libucontext_ucontext_t *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue