summaryrefslogtreecommitdiff
path: root/src/utils/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r--src/utils/process.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index 11cdf1c53..10ee5581f 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -36,13 +36,13 @@ PRAGMA48(GCC diagnostic pop)
#include "debug.h"
-#if defined(WIN32) || defined(__linux__) || \
+#if defined(_WIN32) || defined(__linux__) || \
defined(__linux) || defined(__APPLE__)
const int timeOut = 10;
-#endif // defined(WIN32) || defined(__linux__) ||
+#endif // defined(_WIN32) || defined(__linux__) ||
// defined(__linux) || defined(__APPLE__)
-#ifdef WIN32
+#ifdef _WIN32
#include "utils/stringutils.h"
@@ -245,16 +245,16 @@ bool execFile(const std::string &pathName A_UNUSED,
return false;
}
-#endif // WIN32
+#endif // _WIN32
-#if defined WIN64
+#if defined _WIN64
bool openBrowser(std::string url)
{
return reinterpret_cast<int64_t>(ShellExecute(nullptr, "open",
replaceAll(url, " ", "").c_str(),
nullptr, nullptr, SW_SHOWNORMAL)) > 32;
}
-#elif defined WIN32
+#elif defined _WIN32
bool openBrowser(std::string url)
{
return reinterpret_cast<int32_t>(ShellExecute(nullptr, "open",
@@ -312,9 +312,9 @@ bool openBrowser(std::string url A_UNUSED)
return false;
}
-#endif // WIN32
+#endif // _WIN32
-#ifdef WIN32
+#ifdef _WIN32
void setPriority(const bool big)
{
HANDLE hCurrentProcess = GetCurrentProcess();
@@ -323,9 +323,9 @@ void setPriority(const bool big)
else
SetPriorityClass(hCurrentProcess, BELOW_NORMAL_PRIORITY_CLASS);
}
-#else // WIN32
+#else // _WIN32
void setPriority(const bool big A_UNUSED)
{
}
-#endif // WIN32
+#endif // _WIN32