From 18c7d295c998509d9f452349dff3d607fd11d69f Mon Sep 17 00:00:00 2001 From: spycrab Date: Wed, 9 May 2018 22:24:31 +0200 Subject: [PATCH] Qt/FilesystemWidget: Fix moc compilation --- Source/Core/DolphinQt2/Config/FilesystemWidget.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Config/FilesystemWidget.h b/Source/Core/DolphinQt2/Config/FilesystemWidget.h index 925672c49a..a9d7a998f0 100644 --- a/Source/Core/DolphinQt2/Config/FilesystemWidget.h +++ b/Source/Core/DolphinQt2/Config/FilesystemWidget.h @@ -7,7 +7,12 @@ #include #include +// Qt versions prior to 5.9 don't support C++17 nested namespaces in moc so we have to if-guard +// this header +#ifndef Q_MOC_RUN #include "DiscIO/Volume.h" +#endif + #include "UICommon/GameFile.h" class QStandardItem; @@ -18,7 +23,7 @@ namespace DiscIO { class FileInfo; struct Partition; -}; +}; // namespace DiscIO class FilesystemWidget final : public QWidget {