mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
Replace Q_OS_MAC with Q_OS_MACOS
This commit is contained in:
@ -48,7 +48,7 @@ void YACReaderHttpServer::start(quint16 port)
|
||||
QString baseTemplatePath = QString("./server/templates");
|
||||
QString templatePath;
|
||||
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MACOS
|
||||
templatePath = QFileInfo(QString(DATADIR) + "/yacreader", baseTemplatePath).absoluteFilePath();
|
||||
#else
|
||||
templatePath = QFileInfo(QCoreApplication::applicationDirPath(), baseTemplatePath).absoluteFilePath();
|
||||
@ -76,7 +76,7 @@ void YACReaderHttpServer::start(quint16 port)
|
||||
QString basedocroot = "./server/docroot";
|
||||
QString docroot;
|
||||
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MACOS
|
||||
QFileInfo configFile(QString(DATADIR) + "/yacreader");
|
||||
docroot = QFileInfo(QString(DATADIR) + "/yacreader", basedocroot).absoluteFilePath();
|
||||
#else
|
||||
|
Reference in New Issue
Block a user