#3739: Support aarch64 natives
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
|
||||
#include <zlib.h>
|
||||
#include "shared.h"
|
||||
#if !defined(__aarch64__)
|
||||
#include "cpuid_helper.h"
|
||||
#endif
|
||||
#include "net_md_5_bungee_jni_zlib_NativeCompressImpl.h"
|
||||
|
||||
typedef unsigned char byte;
|
||||
@@ -28,7 +30,11 @@ jint throwException(JNIEnv *env, const char* message, int err) {
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_net_md_15_bungee_jni_zlib_NativeCompressImpl_checkSupported(JNIEnv* env, jobject obj) {
|
||||
return (jboolean) checkCompressionNativesSupport();
|
||||
#if !defined(__aarch64__)
|
||||
return (jboolean) checkCompressionNativesSupport();
|
||||
#else
|
||||
return JNI_TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
void JNICALL Java_net_md_15_bungee_jni_zlib_NativeCompressImpl_reset(JNIEnv* env, jobject obj, jlong ctx, jboolean compress) {
|
||||
|
Reference in New Issue
Block a user