diff --git a/jni/jni_helper.cpp b/jni/jni_helper.cpp index 38a0c6aa0..1a9ec8049 100644 --- a/jni/jni_helper.cpp +++ b/jni/jni_helper.cpp @@ -1,8 +1,3 @@ -#ifdef __cplusplus -extern "C" { -#endif - -#include #include "jni_helper.h" bool has_permission(struct android_app* app) { @@ -35,7 +30,3 @@ void crash_report(struct android_app* app) { vm->DetachCurrentThread(); } } - -#ifdef __cplusplus -} -#endif diff --git a/jni/jni_helper.h b/jni/jni_helper.h index bd2b01345..13723c743 100644 --- a/jni/jni_helper.h +++ b/jni/jni_helper.h @@ -1,4 +1,15 @@ +#ifdef __cplusplus +extern "C" { +#else +#include +#endif + +#include #include "android_native_app_glue.h" bool has_permission(struct android_app* app); void crash_report(struct android_app* app); + +#ifdef __cplusplus +} +#endif