summaryrefslogtreecommitdiffstats
path: root/development/codeblocks/codeblocks-gcc11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'development/codeblocks/codeblocks-gcc11.patch')
-rw-r--r--development/codeblocks/codeblocks-gcc11.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/development/codeblocks/codeblocks-gcc11.patch b/development/codeblocks/codeblocks-gcc11.patch
new file mode 100644
index 0000000000..df4a087acc
--- /dev/null
+++ b/development/codeblocks/codeblocks-gcc11.patch
@@ -0,0 +1,28 @@
+Index: src/plugins/openfileslist/openfileslistplugin.h
+===================================================================
+diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h
+--- a/src/plugins/openfileslist/openfileslistplugin.h (revision 12302)
++++ b/src/plugins/openfileslist/openfileslistplugin.h (revision 12303)
+@@ -10,6 +10,7 @@
+ #include <projectfile.h>
+
+ #include <wx/dynarray.h>
++#include <functional>
+
+ class wxTreeCtrl;
+ class wxTreeEvent;
+@@ -20,12 +21,8 @@
+ struct TargetFilesData
+ {
+ TargetFilesData() : activeFile(nullptr) {} // ctor
+- // Functor for the std::set predicate to sort the opened editor files according to their tab order
+- struct compareLess
+- {
+- bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) { return lhs->editorTabPos < rhs->editorTabPos; }
+- };
+- typedef std::set<ProjectFile*, compareLess> OpenFilesSet;
++
++ typedef std::set<ProjectFile*, std::less<ProjectFile*>> OpenFilesSet;
+ ProjectFile* activeFile;
+ OpenFilesSet openFiles;
+ };