diff --git a/src/dlangui/platforms/common/platform.d b/src/dlangui/platforms/common/platform.d index 7c219b89..ad9e9cd5 100644 --- a/src/dlangui/platforms/common/platform.d +++ b/src/dlangui/platforms/common/platform.d @@ -669,8 +669,11 @@ version (USE_OPENGL) { } } -//mixin template APP_ENTRY_POINT() { -//} +version (Windows) { + // to remove import + extern(Windows) int DLANGUIWinMain(void* hInstance, void* hPrevInstance, + char* lpCmdLine, int nCmdShow); +} /// put "mixin APP_ENTRY_POINT;" to main module of your dlangui based app mixin template APP_ENTRY_POINT() { @@ -687,9 +690,6 @@ mixin template APP_ENTRY_POINT() { /// workaround for link issue when WinMain is located in library version(Windows) { - private import dlangui.platforms.sdl.sdlapp; - private import dlangui.platforms.windows.winapp; - extern (Windows) int WinMain(void* hInstance, void* hPrevInstance, char* lpCmdLine, int nCmdShow) {