From 8904504d33ab10a55fb05ed3aa91ea04ec3673a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Fern=C3=A1ndez?= Date: Mon, 30 Sep 2024 22:00:37 +0200 Subject: [PATCH] cpp --- jni/jni_helper.cpp | 9 --------- jni/jni_helper.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) 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