From 1a5e7c2f37f1f3b9969c01e61ab9347dcd546bee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Mar 2017 17:09:53 +0300 Subject: Fix compilation for windows 64 with mingw. --- src/utils/process.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/utils/process.cpp') diff --git a/src/utils/process.cpp b/src/utils/process.cpp index 7aa1aa619..f84506024 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -241,10 +241,17 @@ bool execFile(const std::string &pathName A_UNUSED, #endif // WIN32 -#ifdef WIN32 +#if defined WIN64 +bool openBrowser(std::string url) +{ + return reinterpret_cast(ShellExecute(nullptr, "open", + replaceAll(url, " ", "").c_str(), + nullptr, nullptr, SW_SHOWNORMAL)) > 32; +} +#elif defined WIN32 bool openBrowser(std::string url) { - return reinterpret_cast(ShellExecute(nullptr, "open", + return reinterpret_cast(ShellExecute(nullptr, "open", replaceAll(url, " ", "").c_str(), nullptr, nullptr, SW_SHOWNORMAL)) > 32; } -- cgit v1.2.3-70-g09d2