From eb7fe2d5f8392ec5d1ed3fae4b7c44c5ff69e314 Mon Sep 17 00:00:00 2001 From: czurnieden Date: Sat, 10 Jul 2021 23:10:48 +0200 Subject: [PATCH] Added check for __SIZEOF_INT128__ to avoid some problems with a 64-bit arch. and 32-bit userspace --- tommath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tommath.h b/tommath.h index 44c92b22..fbc025ef 100644 --- a/tommath.h +++ b/tommath.h @@ -29,7 +29,7 @@ extern "C" { defined(__ia64) || defined(__ia64__) || defined(__itanium__) || defined(_M_IA64) || \ defined(__LP64__) || defined(_LP64) || defined(__64BIT__) # if !(defined(MP_64BIT) || defined(MP_32BIT) || defined(MP_16BIT)) -# if defined(__GNUC__) && !defined(__hppa) +# if defined(__GNUC__) && defined(__SIZEOF_INT128__) && !defined(__hppa) /* we support 128bit integers only via: __attribute__((mode(TI))) */ # define MP_64BIT # else