diff --git a/src/libsodium/include/sodium/runtime.h b/src/libsodium/include/sodium/runtime.h index bd680efb..2e713f43 100644 --- a/src/libsodium/include/sodium/runtime.h +++ b/src/libsodium/include/sodium/runtime.h @@ -4,6 +4,10 @@ #include "export.h" +#ifdef __cplusplus +extern "C" { +#endif + SODIUM_EXPORT int sodium_runtime_get_cpu_features(void); @@ -16,4 +20,8 @@ int sodium_runtime_has_sse2(void); SODIUM_EXPORT int sodium_runtime_has_sse3(void); +#ifdef __cplusplus +} +#endif + #endif