summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-07-01 18:29:22 +0200
committerFedja Beader <fedja@protonmail.ch>2025-07-01 18:59:37 +0200
commitde01f62474482fcc54083f1e0def2fd9227100aa (patch)
treed4a574ae1c8fd372487a61605fb59afcd3787d45
parentb9b20e32cab7b5d3d481eda3381bb53ffb9a1801 (diff)
downloadverse-de01f62474482fcc54083f1e0def2fd9227100aa.tar.gz
verse-de01f62474482fcc54083f1e0def2fd9227100aa.tar.bz2
verse-de01f62474482fcc54083f1e0def2fd9227100aa.tar.xz
verse-de01f62474482fcc54083f1e0def2fd9227100aa.zip
Change the wrong, but mostly supported WIN64 macro to the correct _WIN64
Addendum to !211
-rw-r--r--src/gui/windowmanager.cpp6
-rw-r--r--src/main.h2
-rw-r--r--src/utils/process.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp
index a234fdd55..d6f7bedbb 100644
--- a/src/gui/windowmanager.cpp
+++ b/src/gui/windowmanager.cpp
@@ -458,15 +458,15 @@ void WindowManager::setIcon()
if (icon)
{
-#ifdef WIN64
+#ifdef _WIN64
SetClassLongPtr(windowRef,
GCLP_HICON,
reinterpret_cast<LONG_PTR>(icon));
-#else // WIN64
+#else // _WIN64
SetClassLong(windowRef,
GCL_HICON,
reinterpret_cast<LONG>(icon));
-#endif // WIN64
+#endif // _WIN64
}
#else // _WIN32
diff --git a/src/main.h b/src/main.h
index 332668ffe..7750af3b0 100644
--- a/src/main.h
+++ b/src/main.h
@@ -121,7 +121,7 @@
#elif defined __HAIKU__
#define PACKAGE_OS "Haiku"
#elif defined _WIN32 || defined __WIN32__ || defined __NT__ \
- || defined WIN64 || defined _WIN64 || defined __WIN64__ \
+ || defined _WIN64 || defined __WIN64__ \
|| defined __MINGW32__ || defined _MSC_VER
#define PACKAGE_OS "Windows"
#elif defined __native_client__
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index b5d47f957..10ee5581f 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -247,7 +247,7 @@ bool execFile(const std::string &pathName A_UNUSED,
#endif // _WIN32
-#if defined WIN64
+#if defined _WIN64
bool openBrowser(std::string url)
{
return reinterpret_cast<int64_t>(ShellExecute(nullptr, "open",