From 3ab103ffbbd4d6e3a0d6f14043b031eb36c3967e Mon Sep 17 00:00:00 2001 From: Pierre Ferran Date: Mon, 24 Jul 2023 11:49:50 -0700 Subject: [PATCH] Add Windows entrypoint instead of main() --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 7e5d39a..e599806 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,7 +22,14 @@ #include "window_manager.h" // Main code + +#ifdef SFML_SYSTEM_WINDOWS +#include + +int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int) +#else int main(int, char**) +#endif { vector_audio::SingleInstance instance; if (instance.HasRunningInstance()) {