diff --git a/Runtime/Runtime.cpp b/Runtime/Runtime.cpp index 098b98da..e8389ce2 100644 --- a/Runtime/Runtime.cpp +++ b/Runtime/Runtime.cpp @@ -76,12 +76,14 @@ int ApplicationMain(int argc, char* argv[]) #ifdef NK_DIST +#ifdef NK_WIN #include "windows.h" int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cdmline, int cmdshow) { return ApplicationMain(__argc, __argv); } +#endif #else diff --git a/premake5.lua b/premake5.lua index a708409a..7eb34205 100644 --- a/premake5.lua +++ b/premake5.lua @@ -209,9 +209,6 @@ project "NuakeRuntime" "WIN32_LEAN_AND_MEAN" } - entrypoint "WinMainCRTStartup" - buildoptions { "-mwindows"} - filter "configurations:Dist" kind "WindowedApp" runtime "Release"