From 3b8e7d546a0ad6712320b1a1b196f55521d4e1ee Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 2 Dec 2020 13:29:49 -0600 Subject: [PATCH] sp_int.h: force C linkage, so that enable-sp-math-all is compatible with CC=g++. --- wolfssl/wolfcrypt/sp_int.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 */