Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9675c270 authored by René J.V. Bertin's avatar René J.V. Bertin

Avoid using #elifdef

Clang rejects that non-standard preprocessor token, at least on Mac.
Use "#elif defined(Q_OS_WIN)" instead.
parent b4e74ad9
......@@ -105,7 +105,7 @@ bool DocumentValidator::validate(const double currentVersion)
}
#ifdef Q_OS_MAC
setlocale(LC_NUMERIC_MASK, requestedLocale.toUtf8().constData());
#elifdef Q_OS_WIN
#elif defined(Q_OS_WIN)
std::locale::global(std::locale(requestedLocale.toUtf8().constData()));
#else
setlocale(LC_NUMERIC, requestedLocale.toUtf8().constData());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment