summaryrefslogtreecommitdiffstats
path: root/logic/java
diff options
context:
space:
mode:
Diffstat (limited to 'logic/java')
-rw-r--r--logic/java/JavaUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/java/JavaUtils.cpp b/logic/java/JavaUtils.cpp
index 9dfb7897..dcff09d3 100644
--- a/logic/java/JavaUtils.cpp
+++ b/logic/java/JavaUtils.cpp
@@ -51,7 +51,7 @@ JavaInstallPtr JavaUtils::GetDefaultJava()
return javaVersion;
}
-#if WINDOWS
+#if defined(Q_OS_WIN32)
QList<JavaInstallPtr> JavaUtils::FindJavaFromRegistryKey(DWORD keyType, QString keyName)
{
QList<JavaInstallPtr> javas;
@@ -170,7 +170,7 @@ QList<QString> JavaUtils::FindJavaPaths()
return candidates;
}
-#elif OSX
+#elif defined(Q_OS_MAC)
QList<QString> JavaUtils::FindJavaPaths()
{
QList<QString> javas;
@@ -193,7 +193,7 @@ QList<QString> JavaUtils::FindJavaPaths()
return javas;
}
-#elif LINUX
+#elif defined(Q_OS_LINUX)
QList<QString> JavaUtils::FindJavaPaths()
{
qDebug() << "Linux Java detection incomplete - defaulting to \"java\"";