diff --git a/Source/Main.cpp b/Source/Main.cpp index 07eeaf72f..9b77f7a5d 100644 --- a/Source/Main.cpp +++ b/Source/Main.cpp @@ -18,9 +18,13 @@ /// Cortex Command Community Project Discord - https://discord.gg/TSU6StNQUG /// +#ifndef ALLEGRO_NO_MAGIC_MAIN +#define ALLEGRO_NO_MAGIC_MAIN +#endif #include "allegro.h" #include "SDL.h" -#include "SDL_image.h" +#include "SDL2/SDL_image.h" +#include "SDL2/SDL_main.h" #include "GUI.h" #include "GUIInputWrapper.h" @@ -469,7 +473,3 @@ int main(int argc, char** argv) { return EXIT_SUCCESS; } - -#ifdef _WIN32 -int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { return main(__argc, __argv); } -#endif