diff options
Diffstat (limited to 'plugins/MirOTR/Libgcrypt/mpi/mpi-asm-defs.h')
-rw-r--r-- | plugins/MirOTR/Libgcrypt/mpi/mpi-asm-defs.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/MirOTR/Libgcrypt/mpi/mpi-asm-defs.h b/plugins/MirOTR/Libgcrypt/mpi/mpi-asm-defs.h index 13424e2808..e607806e10 100644 --- a/plugins/MirOTR/Libgcrypt/mpi/mpi-asm-defs.h +++ b/plugins/MirOTR/Libgcrypt/mpi/mpi-asm-defs.h @@ -1,10 +1,8 @@ -/* This file defines some basic constants for the MPI machinery. We - * need to define the types on a per-CPU basis, so it is done with - * this file here. */ +/* This file defines some basic constants for the MPI machinery. + * AMD64 compiled for the x32 ABI is special and thus we can't use the + * standard values for this ABI. */ +#if __GNUC__ >= 3 && defined(__x86_64__) && defined(__ILP32__) +#define BYTES_PER_MPI_LIMB 8 +#else #define BYTES_PER_MPI_LIMB (SIZEOF_UNSIGNED_LONG) - - - - - - +#endif |