summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclTomMath.h')
-rw-r--r--generic/tclTomMath.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/generic/tclTomMath.h b/generic/tclTomMath.h
index 2ecc3c5..90d14df 100644
--- a/generic/tclTomMath.h
+++ b/generic/tclTomMath.h
@@ -56,6 +56,17 @@ extern "C" {
#define MP_64BIT
#endif
#endif
+#if defined(__APPLE__) && defined(__LP64__)
+/*
+ * At present, use of 128-bit arithmetic via __attribute__ ((mode(TI)))
+ * leads to link errors on Darwin x86_64__ and ppc64. rdar://4685527
+ */
+# ifdef HAVE_LP64_MODE_TI
+# define MP_64BIT
+# else
+# undef MP_64BIT
+# endif
+#endif
/* some default configurations.
*
@@ -839,6 +850,6 @@ MODULE_SCOPE const char *mp_s_rmap;
/* $Source: /root/tcl/repos-to-convert/tcl/generic/tclTomMath.h,v $ */
-/* $Revision: 1.5 $ */
-/* $Date: 2005/12/13 22:43:18 $ */
+/* $Revision: 1.6 $ */
+/* $Date: 2006/08/18 07:45:31 $ */