aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgFrontendCore.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-31 06:13:26 +0000
committersaturneric <[email protected]>2024-07-31 06:13:26 +0000
commit081147d65fcb0a20818bbfb43f6ec4f5ddf59581 (patch)
treef6ec05666acb98da46b4cb0dfc0871225f4ad388 /src/core/GpgFrontendCore.h
parentfix: dealing with unknown compiler (diff)
downloadGpgFrontend-081147d65fcb0a20818bbfb43f6ec4f5ddf59581.tar.gz
GpgFrontend-081147d65fcb0a20818bbfb43f6ec4f5ddf59581.zip
fix: addressing some of the significant deficiencies identified
Diffstat (limited to 'src/core/GpgFrontendCore.h')
-rw-r--r--src/core/GpgFrontendCore.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/GpgFrontendCore.h b/src/core/GpgFrontendCore.h
index 1d5ae29f..a632966e 100644
--- a/src/core/GpgFrontendCore.h
+++ b/src/core/GpgFrontendCore.h
@@ -46,10 +46,21 @@ Q_DECLARE_LOGGING_CATEGORY(core)
#define LOG_E() qCCritical(core)
#define LOG_F() qCFatal(core)
+#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
+#define LOG_F(...) qCFatal(core)
+#else
+#define LOG_F(...) qFatal()
+#endif
+
#define FLOG_D(...) qCDebug(core, __VA_ARGS__)
#define FLOG_I(...) qCInfo(core, __VA_ARGS__)
#define FLOG_W(...) qCWarning(core, __VA_ARGS__)
#define FLOG_E(...) qCCritical(core, __VA_ARGS__)
+
+#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
#define FLOG_F(...) qCFatal(core, __VA_ARGS__)
+#else
+#define FLOG_F(...) qFatal(__VA_ARGS__)
+#endif
#endif \ No newline at end of file