From ba41be67f02158df964543d21b30c83f1b17550d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 24 Sep 2017 03:54:59 -0400 Subject: windows gui hello world --- src/analyze.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index b20b7b3bd7..fbe96fb91f 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3200,6 +3200,12 @@ ImportTableEntry *add_source_file(CodeGen *g, PackageTableEntry *package, Buf *a g->have_c_main = true; g->windows_subsystem_windows = false; g->windows_subsystem_console = true; + } else if (proto_node->data.fn_proto.visib_mod == VisibModExport && buf_eql_str(proto_name, "WinMain") && + g->zig_target.os == ZigLLVM_Win32) + { + g->have_winmain = true; + g->windows_subsystem_windows = true; + g->windows_subsystem_console = false; } } -- cgit v1.2.3