Commit 6631d426646a41a7249de787d9f448be70737fd0

Daniel Mendler 2019-05-19T10:05:15

remove __cplusplus stuff from tommath_private.h tommath_private.h is an internal header which won't be included by a C++ source file.

diff --git a/tommath_private.h b/tommath_private.h
index 2c07683..d1a8b63 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -6,10 +6,6 @@
 
 #include "tommath.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /* Hardening libtommath
  * --------------------
  *
@@ -222,8 +218,4 @@ MP_DEPRECATED(s_mp_toom_mul) mp_err mp_toom_mul(const mp_int *a, const mp_int *b
 MP_DEPRECATED(s_mp_toom_sqr) mp_err mp_toom_sqr(const mp_int *a, mp_int *b);
 MP_DEPRECATED(s_mp_reverse) void bn_reverse(unsigned char *s, int len);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif