From 8d8d98fe011bd0147f9d90b2738b87eb8afd3ea0 Mon Sep 17 00:00:00 2001 From: Molly Sophia Date: Thu, 22 Feb 2024 21:12:36 +0800 Subject: [PATCH] Add extern "C" (#21) Signed-off-by: Molly Sophia --- ruapu.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ruapu.h b/ruapu.h index e476256..f97de93 100644 --- a/ruapu.h +++ b/ruapu.h @@ -7,6 +7,10 @@ #ifndef RUAPU_H #define RUAPU_H +#ifdef __cplusplus +extern "C" { +#endif + void ruapu_init(); int ruapu_supports(const char* isa); @@ -319,4 +323,8 @@ int ruapu_supports(const char* isa) #endif // RUAPU_IMPLEMENTATION +#ifdef __cplusplus +} +#endif + #endif // RUAPU_H