We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4aa8155 + aada5c9 commit ec70f94Copy full SHA for ec70f94
CHANGES.md
@@ -7,6 +7,7 @@ Next Release (5.18.0)
7
8
Features
9
--------
10
+* [#1671](https://github.com/java-native-access/jna/pull/1671): Add `isRISCV` to `c.s.j.Platform` - [@Glavo](https://github.com/Glavo).
11
12
Bug Fixes
13
---------
src/com/sun/jna/Platform.java
@@ -246,6 +246,10 @@ public static final boolean isLoongArch() {
246
return ARCH.startsWith("loongarch");
247
}
248
249
+ public static final boolean isRISCV() {
250
+ return ARCH.startsWith("riscv");
251
+ }
252
+
253
static String getCanonicalArchitecture(String arch, int platform) {
254
arch = arch.toLowerCase().trim();
255
if ("powerpc".equals(arch)) {
0 commit comments