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 JavaUtils::FindJavaFromRegistryKey(DWORD keyType, QString keyName) { QList javas; @@ -170,7 +170,7 @@ QList JavaUtils::FindJavaPaths() return candidates; } -#elif OSX +#elif defined(Q_OS_MAC) QList JavaUtils::FindJavaPaths() { QList javas; @@ -193,7 +193,7 @@ QList JavaUtils::FindJavaPaths() return javas; } -#elif LINUX +#elif defined(Q_OS_LINUX) QList JavaUtils::FindJavaPaths() { qDebug() << "Linux Java detection incomplete - defaulting to \"java\"";