Changes required to support FreeBSD

This commit is contained in:
Graeme Geldenhuys
2021-12-12 00:35:46 +00:00
parent 80beccb2c4
commit 7179e75e70
16 changed files with 94 additions and 20 deletions

View File

@ -23,6 +23,13 @@
#include "FileSystem.h"
#include <QDir>
#ifdef major
#undef major
#endif
#ifdef minor
#undef minor
#endif
static QString replaceSuffix (QString target, const QString &suffix, const QString &replacement)
{
if (!target.endsWith(suffix))