Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed Dec 27, 2023
1 parent c6afa3f commit 2cdc10b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontends/common/windows/graphical_app.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import core.sys.windows.windef;
public import core.sys.windows.winbase: SetUnhandledExceptionFilter;

pragma(linkerDirective, "/SUBSYSTEM:WINDOWS");
// static if (__VERSION__ >= 2091)
// pragma(linkerDirective, "/ENTRY:wmainCRTStartup");
// else
// pragma(linkerDirective, "/ENTRY:mainCRTStartup");
static if (__VERSION__ >= 2091)
pragma(linkerDirective, "/ENTRY:wmainCRTStartup");
else
pragma(linkerDirective, "/ENTRY:mainCRTStartup");

private class SegmentationFault: Throwable /+ Throwable since it should not be caught +/ {
this(string file = __FILE__, size_t line = __LINE__) {
Expand Down

0 comments on commit 2cdc10b

Please sign in to comment.