From 4c2cfc54aca992ee095a542d30afcfa2fe3849f1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 18 May 2023 18:11:50 -0700 Subject: [PATCH] libucontext.h: add C++ externs --- include/libucontext/libucontext.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/libucontext/libucontext.h b/include/libucontext/libucontext.h index 037da0e..aac33f6 100644 --- a/include/libucontext/libucontext.h +++ b/include/libucontext/libucontext.h @@ -4,9 +4,17 @@ #include #include +#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