diff --git a/wolfssl/wolfcrypt/sp_int.h b/wolfssl/wolfcrypt/sp_int.h index c7ab5e022..1e5b4be83 100644 --- a/wolfssl/wolfcrypt/sp_int.h +++ b/wolfssl/wolfcrypt/sp_int.h @@ -31,6 +31,10 @@ This library provides single precision (SP) integer math functions. #include #endif +#ifdef __cplusplus +extern "C" { +#endif + /* Find smallest type for smallest bits. */ #if UCHAR_MAX == 255 #define SP_UCHAR_BITS 8 @@ -889,5 +893,8 @@ WOLFSSL_API word32 CheckRunTimeFastMath(void); #endif -#endif /* WOLF_CRYPT_SP_H */ +#ifdef __cplusplus +} /* extern "C" */ +#endif +#endif /* WOLF_CRYPT_SP_H */