Browse Source

Platform: avoid warnings about missing function declaration.

pull/205/head
Vladimír Vondruš 8 years ago
parent
commit
d7e7914839
  1. 3
      src/Magnum/Platform/AndroidApplication.h

3
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. header is included this macro is also aliased to @cpp MAGNUM_APPLICATION_MAIN() @ce.
*/ */
#define MAGNUM_ANDROIDAPPLICATION_MAIN(className) \ #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::exec(state, \
Magnum::Platform::AndroidApplication::instancer<className>); \ Magnum::Platform::AndroidApplication::instancer<className>); \
} }

Loading…
Cancel
Save