diff --git a/fitsio2.h b/fitsio2.h index 1adb17b..6c2d598 100644 --- a/fitsio2.h +++ b/fitsio2.h @@ -137,6 +137,12 @@ extern int Fitsio_Pthread_Status; # error "can't handle long size given by _MIPS_SZLONG" # endif +#elif defined(__loongarch64) + +#define BYTESWAPPED TRUE +#define MACHINE OTHERTYPE +#define LONGSIZE 64 + #elif defined(__riscv) /* RISC-V is always little endian */