Main: move main() to the bottom
This commit is contained in:
parent
efc6b1b77a
commit
d17ff18ec0
26
src/Main.cxx
26
src/Main.cxx
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user