aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-01 19:09:31 +0100
committerMax Kellermann <max@duempel.org>2014-03-01 19:09:31 +0100
commit14168eadb2a24e03abb2528b951dc5f0faed5513 (patch)
tree5e0ee969acdda64dd77c3de7e5e8d8dec36c89fa
parent58771fc41c411769d3ab7248c7fab00e8dbbecef (diff)
downloadmpd-14168eadb2a24e03abb2528b951dc5f0faed5513.tar.gz
mpd-14168eadb2a24e03abb2528b951dc5f0faed5513.tar.xz
mpd-14168eadb2a24e03abb2528b951dc5f0faed5513.zip
Main: inline mpd_main() on Android
-rw-r--r--src/Main.cxx3
-rw-r--r--src/Main.hxx4
2 files changed, 7 insertions, 0 deletions
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
/**