From d7e7914839175e7f704af9239fd909923fe41965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 15 Mar 2018 14:57:55 +0100 Subject: [PATCH] Platform: avoid warnings about missing function declaration. --- src/Magnum/Platform/AndroidApplication.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/AndroidApplication.h b/src/Magnum/Platform/AndroidApplication.h index 12a2b0446..17d1f4771 100644 --- a/src/Magnum/Platform/AndroidApplication.h +++ b/src/Magnum/Platform/AndroidApplication.h @@ -611,7 +611,8 @@ code (the classic @cpp main() @ce function cannot be used in Android). See header is included this macro is also aliased to @cpp MAGNUM_APPLICATION_MAIN() @ce. */ #define MAGNUM_ANDROIDAPPLICATION_MAIN(className) \ - extern "C" CORRADE_VISIBILITY_EXPORT void android_main(android_app* state) { \ + extern "C" CORRADE_VISIBILITY_EXPORT void android_main(android_app* state); \ + extern "C" void android_main(android_app* state) { \ Magnum::Platform::AndroidApplication::exec(state, \ Magnum::Platform::AndroidApplication::instancer); \ }