diff --git a/include/openssl/target.h b/include/openssl/target.h
index 147ab31..bc03e54 100644
--- a/include/openssl/target.h
+++ b/include/openssl/target.h
@@ -45,6 +45,9 @@
 #define OPENSSL_RISCV64
 #elif defined(__riscv) && __SIZEOF_POINTER__ == 4
 #define OPENSSL_32_BIT
+#elif defined(__loongarch64)
+#define OPENSSL_64_BIT
+#define OPENSSL_LOONGARCH64
 #elif defined(__pnacl__)
 #define OPENSSL_32_BIT
 #define OPENSSL_PNACL
