File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed
Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -87,5 +87,27 @@ int main(utki::span<const char*> args)
8787// NOLINTNEXTLINE(bugprone-exception-escape)
8888int main (int argc, const char ** argv)
8989{
90- return tst::main (utki::make_span (argv, argc));
90+ return tst::main (
91+ utki::make_span (
92+ argv, //
93+ argc
94+ )
95+ );
9196}
97+
98+ #if CFG_OS == CFG_OS_WINDOWS
99+ int WINAPI WinMain (
100+ HINSTANCE h_instance, // Instance
101+ HINSTANCE h_prev_instance, // Previous Instance
102+ LPSTR lp_cmd_line, // Command Line Parameters
103+ int n_cmd_show // Window Show State
104+ )
105+ {
106+ return tst::main (
107+ utki::make_span (
108+ const_cast <const char **>(__argv), //
109+ __argc
110+ )
111+ );
112+ }
113+ #endif
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ this_srcs := $(call prorab-src-dir, .)
1111this_srcs += ../harness/testees.cpp
1212
1313ifeq ($(os ) , windows)
14- this_ldlibs += -l mingw32
1514else
1615 this_ldflags += -rdynamic
1716endif
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ this_srcs := $(call prorab-src-dir, .)
1111this_srcs += ../harness/testees.cpp
1212
1313ifeq ($(os ) , windows)
14- this_ldlibs += -l mingw32
1514else
1615 this_ldflags += -rdynamic
1716endif
You can’t perform that action at this time.
0 commit comments