Fix support for riscv 64 bit against new GCC macros.
This commit is contained in:
parent
abd8126a38
commit
49f198c13b
@ -75,9 +75,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
#include "gmp-mparam-mipsel.h"
|
||||
#elif defined(__mips)
|
||||
#include "gmp-mparam-mips.h"
|
||||
#elif defined(__riscv64)
|
||||
#elif defined(__riscv)
|
||||
#if __riscv_xlen == 64
|
||||
#include "gmp-mparam-riscv64.h"
|
||||
#else
|
||||
#error "No support for riscv32"
|
||||
#endif
|
||||
#else
|
||||
#error "The gmp-devel package is not usable with the architecture."
|
||||
#endif
|
||||
|
||||
|
6
gmp.h
6
gmp.h
@ -75,9 +75,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
#include "gmp-mipsel.h"
|
||||
#elif defined(__mips)
|
||||
#include "gmp-mips.h"
|
||||
#elif defined(__riscv64)
|
||||
#elif defined(__riscv)
|
||||
#if __riscv_xlen == 64
|
||||
#include "gmp-riscv64.h"
|
||||
#else
|
||||
#error "No support for riscv32"
|
||||
#endif
|
||||
#else
|
||||
#error "The gmp-devel package is not usable with the architecture."
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user