diff --git a/include/eurydice_glue.h b/include/eurydice_glue.h index 6a21574..c8b0825 100644 --- a/include/eurydice_glue.h +++ b/include/eurydice_glue.h @@ -1,5 +1,9 @@ #pragma once +#if defined(__cplusplus) +extern "C" { +#endif + #include #include #include @@ -211,3 +215,6 @@ typedef struct { #define EURYDICE_REPLACE(ptr, new_v, t) ({ t old_v = *ptr; *ptr = new_v; old_v; }) +#if defined(__cplusplus) +} +#endif