Main: move main() to the bottom

This commit is contained in:
Max Kellermann 2019-05-29 22:18:06 +02:00
parent efc6b1b77a
commit d17ff18ec0

View File

@ -368,20 +368,6 @@ Instance::OnIdle(unsigned flags) noexcept
state_file->CheckModified();
}
#ifndef ANDROID
int
main(int argc, char *argv[]) noexcept
{
#ifdef _WIN32
return win32_main(argc, argv);
#else
return mpd_main(argc, argv);
#endif
}
#endif
static inline void
MainConfigured(const struct options &options, const ConfigData &raw_config)
{
@ -652,4 +638,16 @@ Java_org_musicpd_Bridge_shutdown(JNIEnv *, jclass)
global_instance->Break();
}
#else
int
main(int argc, char *argv[]) noexcept
{
#ifdef _WIN32
return win32_main(argc, argv);
#else
return mpd_main(argc, argv);
#endif
}
#endif