From 2fca51e00fbe7077f8f70c6b83d26c68c93895f7 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 19 Jul 2022 17:00:51 -0700 Subject: [PATCH] JNI: match the declaration from jni.h Happens when we switch to protected visibility. qjnihelpers.cpp:398:1: error: visibility does not match previous declaration jni.h:1112:1: note: previous attribute is here Change-Id: I3859764fed084846bcb0fffd17036098322e6b8d Reviewed-by: Volker Hilsheimer --- src/corelib/kernel/qjnihelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qjnihelpers.cpp b/src/corelib/kernel/qjnihelpers.cpp index 94b280baac..197e37357f 100644 --- a/src/corelib/kernel/qjnihelpers.cpp +++ b/src/corelib/kernel/qjnihelpers.cpp @@ -395,7 +395,7 @@ void QtAndroidPrivate::releaseAndroidDeadlockProtector() QT_END_NAMESPACE -Q_CORE_EXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) +JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { Q_UNUSED(reserved);