diff --git a/vlib/os/open_uri_windows.c.v b/vlib/os/open_uri_windows.c.v index 5f8d48790f..cfc093ed17 100644 --- a/vlib/os/open_uri_windows.c.v +++ b/vlib/os/open_uri_windows.c.v @@ -17,6 +17,7 @@ pub fn open_uri(uri string) ! { handle := dl.open_opt('shell32', dl.rtld_now)! // https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutew func := ShellExecuteWin(dl.sym_opt(handle, 'ShellExecuteW')!) - func(C.NULL, 'open'.to_wide(), uri.to_wide(), C.NULL, C.NULL, C.SW_SHOWNORMAL) + // 1 is SW_SHOWNORMAL, but it avoids including winuser.h, and in turn windows.h, which conflicts with raylib + func(C.NULL, 'open'.to_wide(), uri.to_wide(), C.NULL, C.NULL, 1) dl.close(handle) }