Skip to content

Commit

Permalink
Forward declared mainHelper to fix "identifier not found". (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daggersoath authored Oct 31, 2023
1 parent 5fd7592 commit 96a92b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <jni.h>
#endif

int mainHelper();

#if __ANDROID__

Expand All @@ -37,7 +38,7 @@ extern "C"

#else
int main() {
mainHelper();
return mainHelper();
}

#endif
Expand Down

0 comments on commit 96a92b3

Please sign in to comment.