summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libtommath/tommath_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libtommath/tommath_private.h b/libtommath/tommath_private.h
index 60c8838..93724a4 100644
--- a/libtommath/tommath_private.h
+++ b/libtommath/tommath_private.h
@@ -249,6 +249,11 @@ 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);
+#ifndef TCL_WITH_EXTERNAL_TOMMATH
+#undef mp_sqr
+#define mp_sqr TclBN_mp_sqr
+#endif
+
#undef mp_sqr
#define mp_sqr TclBN_mp_sqr