diff options
Diffstat (limited to 'opentrack/main.cpp')
-rw-r--r-- | opentrack/main.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/opentrack/main.cpp b/opentrack/main.cpp new file mode 100644 index 00000000..2c1dc607 --- /dev/null +++ b/opentrack/main.cpp @@ -0,0 +1,23 @@ +#include "gui/init.hpp" +#include "main-window.hpp" + +#if defined _WIN32 +# include <windows.h> +#endif + +#ifdef __clang__ +# pragma GCC diagnostic ignored "-Wmain" +#endif + +int main(int argc, char** argv) +{ + return run_application(argc, argv, [] { return std::make_unique<main_window>(); }); +} + +#if defined _MSC_VER + +int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int /* nCmdShow */) +{ + return main(__argc, __argv); +} +#endif |