aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
/**