diff options
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r-- | src/utils/process.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp index d0e15bbd4..10ee5581f 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -1,9 +1,9 @@ /* - * The ManaPlus Client + * The ManaVerse Client * Copyright (C) 2011-2020 The ManaPlus Developers - * Copyright (C) 2020-2023 The ManaVerse Developers + * Copyright (C) 2020-2025 The ManaVerse Developers * - * This file is part of The ManaPlus Client. + * This file is part of The ManaVerse Client. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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 |