diff --git a/core/app/utils/digikam_version.h.cmake.in b/core/app/utils/digikam_version.h.cmake.in index 78e20c4309..5abe440b2d 100644 --- a/core/app/utils/digikam_version.h.cmake.in +++ b/core/app/utils/digikam_version.h.cmake.in @@ -1,88 +1,88 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2004-09-09 * Description : digiKam release ID header. * * Copyright (C) 2004-2019 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #ifndef DIGIKAM_VERSION_H #define DIGIKAM_VERSION_H // Qt includes. #include // KDE includes. #include // Local includes. #include "gitversion.h" #include "daboutdata.h" // Remove GCC and Clang warnings about _DATE_ macro. -#if defined(Q_CC_GNU) +#if defined(__clang__) || defined(__GNUC__) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wdate-time" #endif namespace Digikam { static const char digikam_version_short[] = "@DIGIKAM_VERSION_SHORT@"; static const char digikam_version[] = "@DIGIKAM_VERSION_STRING@"; static const char digikam_version_suffix[] = "@DIGIKAM_SUFFIX_VERSION@"; static inline const QString digiKamVersion() { return QLatin1String(digikam_version); } static inline QString additionalInformation() { QString gitVer = QLatin1String(GITVERSION); QString ret = i18n("IRC: irc.freenode.net - #digikam\n" "Feedback: digikam-user@kde.org\n\n" "Build date: %1 (target: %2)", QLatin1String(__DATE__), QLatin1String("@CMAKE_BUILD_TYPE@")); if (!gitVer.isEmpty() && !gitVer.startsWith(QLatin1String("unknow")) && !gitVer.startsWith(QLatin1String("export"))) { ret = i18n("IRC: irc.freenode.net - #digikam\n" "Feedback: digikam-user@kde.org\n\n" "Build date: %1 (target: %2)\n" "Rev.: %3", QLatin1String(__DATE__), QLatin1String("@CMAKE_BUILD_TYPE@"), QString::fromLatin1("%2").arg(gitVer).arg(gitVer)); } return ret; } } // namespace Digikam // Restore warnings -#if defined(Q_CC_GNU) +#if defined(__clang__) || defined(__GNUC__) # pragma GCC diagnostic pop #endif #endif // DIGIKAM_VERSION_H