From b1c79463e0136f455a2d54d98c54d59f5401545b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 2 May 2014 17:21:44 -0700 Subject: [PATCH] Do not forget extern "C" wrappers. --- src/libsodium/include/sodium/runtime.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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