From 3a007fd8af7fc39fafd5f5f06290b306ebf32156 Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 16 Oct 2019 16:38:03 +0800 Subject: [PATCH] Fix iOS build --- src/main_android.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main_android.cpp b/src/main_android.cpp index 6e1bdf94d..e277bdfc5 100644 --- a/src/main_android.cpp +++ b/src/main_android.cpp @@ -27,6 +27,7 @@ extern int main(int argc, char *argv[]); +#ifdef ANDROID struct android_app* global_android_app = NULL; ANativeActivity* global_android_activity = NULL; @@ -37,6 +38,7 @@ void set_global_android_activity(ANativeActivity* activity) global_android_activity = activity; } } +#endif void override_default_params_for_mobile() {