summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/bignum.c b/bignum.c
index 39d262e4c0..8d003796c3 100644
--- a/bignum.c
+++ b/bignum.c
@@ -34,12 +34,14 @@ static VALUE big_three = Qnil;
#define USHORT _USHORT
#endif
-#if defined(HAVE_INT64_T) && defined(HAVE_INT128_T)
-# define SIZEOF_BDIGIT_DBL SIZEOF_INT128_T
-#elif SIZEOF_INT*2 <= SIZEOF_LONG_LONG
-# define SIZEOF_BDIGIT_DBL SIZEOF_LONG_LONG
-#else
-# define SIZEOF_BDIGIT_DBL SIZEOF_LONG
+#ifndef SIZEOF_BDIGIT_DBL
+# if defined(HAVE_INT64_T) && defined(HAVE_INT128_T)
+# define SIZEOF_BDIGIT_DBL SIZEOF_INT128_T
+# elif SIZEOF_INT*2 <= SIZEOF_LONG_LONG
+# define SIZEOF_BDIGIT_DBL SIZEOF_LONG_LONG
+# else
+# define SIZEOF_BDIGIT_DBL SIZEOF_LONG
+# endif
#endif
#ifdef WORDS_BIGENDIAN