From 5f3c0382cfa42cc152992b9412ba3457ad127992 Mon Sep 17 00:00:00 2001
From: David Dormagen <czapper@gmx.de>
Date: Tue, 6 Nov 2018 13:31:07 +0100
Subject: [PATCH] allow compilation with GCC 7 (without <filesystem> header)

---
 SrcBehaviorLoader/PluginLoader.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/SrcBehaviorLoader/PluginLoader.cpp b/SrcBehaviorLoader/PluginLoader.cpp
index 5033cb4..433c209 100644
--- a/SrcBehaviorLoader/PluginLoader.cpp
+++ b/SrcBehaviorLoader/PluginLoader.cpp
@@ -1,9 +1,18 @@
 #include "PluginLoader.h"
 #include <QDebug>
 #include <vector>
-#include <filesystem>
 #include <sstream>
 
+#if __has_include(<filesystem>)
+    #include <filesystem>
+#else
+    #include <experimental/filesystem>
+    namespace std
+    {
+        namespace filesystem = std::experimental::filesystem;
+    };
+#endif
+
 #ifdef _WIN32
 #include <stdio.h>
 #include <tchar.h>
-- 
GitLab