| 1 | diff --git a/fitsio2.h b/fitsio2.h |
| 2 | index d2369cf..9301d39 100644 |
| 3 | |
| 4 | |
| 5 | extern int Fitsio_Pthread_Status; |
| 6 | # error "can't handle long size given by __riscv_xlen" |
| 7 | # endif |
| 8 | |
| 9 | +# elif defined(__loongarch64) |
| 10 | + |
| 11 | +#define BYTESWAPPED TRUE |
| 12 | +#define LONGSIZE 64 |
| 13 | + |
| 14 | /* ============================================================== */ |
| 15 | /* the following are all 32-bit byteswapped platforms */ |
| 16 |