summaryrefslogtreecommitdiff
path: root/src/core/tools/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/tools/main.cpp')
-rw-r--r--src/core/tools/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/tools/main.cpp b/src/core/tools/main.cpp
index 725ac9134..4b6c82997 100644
--- a/src/core/tools/main.cpp
+++ b/src/core/tools/main.cpp
@@ -128,7 +128,7 @@ inline bool VerifyWords(const convert_dict::DicReader::WordList& org_words,
return true;
}
-#if defined(OS_MAC) && defined(QT_MAC_FRAMEWORK_BUILD)
+#if defined(Q_OS_DARWIN) && defined(QT_MAC_FRAMEWORK_BUILD)
QString frameworkIcuDataPath()
{
return QLibraryInfo::location(QLibraryInfo::LibrariesPath) +
@@ -168,7 +168,7 @@ int main(int argc, char *argv[])
icuDataDir = icuPossibleEnvDataDir;
icuDataDirFound = true;
}
-#if defined(OS_MAC) && defined(QT_MAC_FRAMEWORK_BUILD)
+#if defined(Q_OS_DARWIN) && defined(QT_MAC_FRAMEWORK_BUILD)
// In a macOS Qt framework build, the resources are inside the QtWebEngineCore framework
// Resources directory, rather than in the Qt install location.
else if (QFileInfo::exists(frameworkIcuDataPath())) {