From 14168eadb2a24e03abb2528b951dc5f0faed5513 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Mar 2014 19:09:31 +0100 Subject: [PATCH] Main: inline mpd_main() on Android --- src/Main.cxx | 3 +++ src/Main.hxx | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/Main.cxx b/src/Main.cxx index c8290e3ff..f54638170 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -386,6 +386,9 @@ int main(int argc, char *argv[]) #endif +#ifdef ANDROID +static inline +#endif int mpd_main(int argc, char *argv[]) { struct options options; diff --git a/src/Main.hxx b/src/Main.hxx index 831bbaf23..e2b1f5c31 100644 --- a/src/Main.hxx +++ b/src/Main.hxx @@ -25,6 +25,8 @@ struct Instance; extern Instance *instance; +#ifndef ANDROID + /** * A entry point for application. * On non-Windows platforms this is called directly from main() @@ -33,6 +35,8 @@ extern Instance *instance; */ int mpd_main(int argc, char *argv[]); +#endif + #ifdef WIN32 /**