mirror of https://github.com/buggins/dlangui.git
Merge pull request #401 from tom-tan/fix-unittest-windows
Fix failure in unittest on Windows systems
This commit is contained in:
commit
5b96e81d1e
|
@ -1896,6 +1896,8 @@ mixin template APP_ENTRY_POINT() {
|
||||||
} else {
|
} else {
|
||||||
/// 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) {
|
||||||
|
} 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)
|
||||||
{
|
{
|
||||||
|
@ -1908,6 +1910,7 @@ mixin template APP_ENTRY_POINT() {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
version (Android) {
|
version (Android) {
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue