summaryrefslogtreecommitdiffstats
path: root/libtommath
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-18 12:58:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-18 12:58:55 (GMT)
commit37e202ac7dc66bdb08a93b1ef9337ca330c4271f (patch)
tree4d45f4996c67621266a7ec0b34fb68d20241676f /libtommath
parent3ce435c13747183512cc8c2ff023487b9ffec74d (diff)
downloadtcl-37e202ac7dc66bdb08a93b1ef9337ca330c4271f.zip
tcl-37e202ac7dc66bdb08a93b1ef9337ca330c4271f.tar.gz
tcl-37e202ac7dc66bdb08a93b1ef9337ca330c4271f.tar.bz2
Update makefile.vc and rules.vc for using libtommath.dll/zlib1.dll in stead of statically linking libtommath, whenever possible.
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/tommath_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libtommath/tommath_private.h b/libtommath/tommath_private.h
index a0a7a42..aa4348b 100644
--- a/libtommath/tommath_private.h
+++ b/libtommath/tommath_private.h
@@ -158,8 +158,10 @@ extern void MP_FREE(void *mem, size_t size);
#define MP_HAS(x) (sizeof(MP_STRINGIZE(BN_##x##_C)) == 1u)
/* TODO: Remove private_mp_word as soon as deprecated mp_word is removed from tommath. */
+#if !defined(MP_64BIT) || defined(__GNUC__)
#undef mp_word
typedef private_mp_word mp_word;
+#endif
#define MP_MIN(x, y) (((x) < (y)) ? (x) : (y))
#define MP_MAX(x, y) (((x) > (y)) ? (x) : (y))