From 10584485a328cf8a441f329f6da37abafff4cad6 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 21 Mar 2023 15:05:46 -0600 Subject: [PATCH] Export symbol required to use sfml-activity --- src/SFML/Main/SFMLActivity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Main/SFMLActivity.cpp b/src/SFML/Main/SFMLActivity.cpp index 2841a650..79fd3e2f 100644 --- a/src/SFML/Main/SFMLActivity.cpp +++ b/src/SFML/Main/SFMLActivity.cpp @@ -132,7 +132,7 @@ void* loadLibrary(const char* libraryName, JNIEnv* lJNIEnv, jobject& ObjectActiv return handle; } -void ANativeActivity_onCreate(ANativeActivity* activity, void* savedState, std::size_t savedStateSize) +JNIEXPORT void ANativeActivity_onCreate(ANativeActivity* activity, void* savedState, std::size_t savedStateSize) { // Before we can load a library, we need to find out its location. As // we're powerless here in C/C++, we need the JNI interface to communicate