mirror of https://github.com/buggins/dlangui.git
trying to fix buggins/dlangide#276
This commit is contained in:
parent
a4a44b73bf
commit
e2116d0be9
|
@ -1949,6 +1949,7 @@ mixin template APP_ENTRY_POINT() {
|
||||||
/// workaround for link issue when WinMain is located in library
|
/// workaround for link issue when WinMain is located in library
|
||||||
version(Windows) {
|
version(Windows) {
|
||||||
version (unittest) {
|
version (unittest) {
|
||||||
|
// no main in unit tests
|
||||||
} else {
|
} else {
|
||||||
extern (Windows) int WinMain(void* hInstance, void* hPrevInstance,
|
extern (Windows) int WinMain(void* hInstance, void* hPrevInstance,
|
||||||
char* lpCmdLine, int nCmdShow)
|
char* lpCmdLine, int nCmdShow)
|
||||||
|
@ -1965,6 +1966,9 @@ mixin template APP_ENTRY_POINT() {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
version (Android) {
|
version (Android) {
|
||||||
|
} else {
|
||||||
|
version (unittest) {
|
||||||
|
// no main in unit tests
|
||||||
} else {
|
} else {
|
||||||
int main(string[] args)
|
int main(string[] args)
|
||||||
{
|
{
|
||||||
|
@ -1974,6 +1978,7 @@ mixin template APP_ENTRY_POINT() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// initialize font manager on startup
|
/// initialize font manager on startup
|
||||||
extern(C) bool initFontManager();
|
extern(C) bool initFontManager();
|
||||||
|
|
Loading…
Reference in New Issue