gentoo_catmeow_repo/dev-util/codelite/files/fix-linux-build-1.patch

154 lines
6.2 KiB
Diff
Raw Normal View History

2024-10-12 17:11:36 -07:00
diff '--color=auto' -ur a/CodeLite/istorage.h b/CodeLite/istorage.h
--- a/CodeLite/istorage.h 2023-01-11 13:18:07.000000000 -0800
+++ b/CodeLite/istorage.h 2024-10-12 17:56:58.381279220 -0700
@@ -31,6 +31,7 @@
#include "fileentry.h"
#include "pptable.h"
#include "tag_tree.h"
+#include <wx/filename.h>
#define MAX_SEARCH_LIMIT 250
diff '--color=auto' -ur a/CodeLite/MSYS2.cpp b/CodeLite/MSYS2.cpp
--- a/CodeLite/MSYS2.cpp 2023-01-11 13:18:07.000000000 -0800
+++ b/CodeLite/MSYS2.cpp 2024-10-12 18:31:47.011423218 -0700
@@ -6,6 +6,8 @@
#include <wx/arrstr.h>
#include <wx/stdpaths.h>
#include <wx/tokenzr.h>
+#include <wx/filename.h>
+#include <wx/utils.h>
#ifdef __WXMSW__
#include <wx/msw/registry.h>
diff '--color=auto' -ur a/CodeLite/MSYS2.hpp b/CodeLite/MSYS2.hpp
--- a/CodeLite/MSYS2.hpp 2023-01-11 13:18:07.000000000 -0800
+++ b/CodeLite/MSYS2.hpp 2024-10-12 18:30:23.687928926 -0700
@@ -3,6 +3,8 @@
#include "PlatformCommon.hpp"
#include "codelite_exports.h"
+#include <wx/string.h>
+#include <wx/arrstr.h>
class WXDLLIMPEXP_CL MSYS2 : public PlatformCommon
{
diff '--color=auto' -ur a/LanguageServer/LanguageServerLogView.cpp b/LanguageServer/LanguageServerLogView.cpp
--- a/LanguageServer/LanguageServerLogView.cpp 2023-01-11 13:18:07.000000000 -0800
+++ b/LanguageServer/LanguageServerLogView.cpp 2024-10-12 18:19:43.545674385 -0700
@@ -1,4 +1,5 @@
#include "LanguageServerLogView.h"
+#include <wx/menu.h>
LanguageServerLogView::LanguageServerLogView(wxWindow* parent)
: LanguageServerLogViewBase(parent)
diff '--color=auto' -ur a/LiteEditor/clConfigurationSelectionCtrl.h b/LiteEditor/clConfigurationSelectionCtrl.h
--- a/LiteEditor/clConfigurationSelectionCtrl.h 2023-01-11 13:18:07.000000000 -0800
+++ b/LiteEditor/clConfigurationSelectionCtrl.h 2024-10-12 18:27:53.567171697 -0700
@@ -6,6 +6,7 @@
#include <wx/arrstr.h>
#include <wx/panel.h>
+#include <wx/choice.h>
#define OPEN_CONFIG_MGR_STR _("Open Workspace Configuration Manager...")
diff '--color=auto' -ur a/LiteEditor/editorsettingsdockingwidows.cpp b/LiteEditor/editorsettingsdockingwidows.cpp
--- a/LiteEditor/editorsettingsdockingwidows.cpp 2023-01-11 13:18:07.000000000 -0800
+++ b/LiteEditor/editorsettingsdockingwidows.cpp 2024-10-12 18:34:42.215148983 -0700
@@ -59,7 +59,7 @@
std::unordered_map<wxString, wxDirection> orientation_map = { { "UP", wxUP }, { "DOWN", wxDOWN } };
std::unordered_map<int, wxString> orientation_map_reverse = { { wxUP, "UP" }, { wxDOWN, "DOWN" } };
- AddProperty(_("Workspace tabs orientation"), { "UP", "DOWN" },
+ AddProperty(_("Workspace tabs orientation"), (wxArrayString){ "UP", "DOWN" },
orientation_map_reverse[m_options->GetWorkspaceTabsDirection()],
[this, orientation_map](const wxString&, const wxAny& value) mutable {
wxString str_value;
@@ -67,7 +67,7 @@
m_options->SetWorkspaceTabsDirection(orientation_map[str_value]);
}
});
- AddProperty(_("Output tabs orientation"), { "UP", "DOWN" },
+ AddProperty(_("Output tabs orientation"), (wxArrayString){ "UP", "DOWN" },
orientation_map_reverse[m_options->GetOutputTabsDirection()],
[this, orientation_map](const wxString&, const wxAny& value) mutable {
wxString str_value;
diff '--color=auto' -ur a/LiteEditor/tabgroupmanager.h b/LiteEditor/tabgroupmanager.h
--- a/LiteEditor/tabgroupmanager.h 2023-01-11 13:18:07.000000000 -0800
+++ b/LiteEditor/tabgroupmanager.h 2024-10-12 18:37:11.436555932 -0700
@@ -33,6 +33,7 @@
#include <wx/arrstr.h>
#include <wx/event.h>
#include <wx/string.h>
+#include <wx/xml/xml.h>
/**
* Each pair consists of the tabgroup name, and an array of the names of the constituent tabs
diff '--color=auto' -ur a/Plugin/clEditorEditEventsHandler.cpp b/Plugin/clEditorEditEventsHandler.cpp
--- a/Plugin/clEditorEditEventsHandler.cpp 2023-01-11 13:18:07.000000000 -0800
+++ b/Plugin/clEditorEditEventsHandler.cpp 2024-10-12 18:09:38.126611843 -0700
@@ -6,6 +6,7 @@
#include <wx/stc/stc.h>
#include <wx/textctrl.h>
#include <wx/textentry.h>
+#include <wx/app.h>
clEditEventsHandler::clEditEventsHandler(wxStyledTextCtrl* wnd, const wxString& name)
: m_stc(wnd)
diff '--color=auto' -ur a/Plugin/clFileSystemWorkspaceView.hpp b/Plugin/clFileSystemWorkspaceView.hpp
--- a/Plugin/clFileSystemWorkspaceView.hpp 2023-01-11 13:18:07.000000000 -0800
+++ b/Plugin/clFileSystemWorkspaceView.hpp 2024-10-12 18:19:50.465425811 -0700
@@ -6,6 +6,7 @@
#include "clTreeCtrlPanel.h"
#include "cl_command_event.h"
#include "cl_config.h"
+#include <wx/choice.h>
class clThemedButton;
class WXDLLIMPEXP_SDK clFileSystemWorkspaceView : public clTreeCtrlPanel
diff '--color=auto' -ur a/Plugin/clPluginsFindBar.h b/Plugin/clPluginsFindBar.h
--- a/Plugin/clPluginsFindBar.h 2023-01-11 13:18:07.000000000 -0800
+++ b/Plugin/clPluginsFindBar.h 2024-10-12 17:58:51.071017791 -0700
@@ -33,6 +33,7 @@
#include <codelite_exports.h>
#include <wx/combobox.h>
#include <wx/panel.h>
+#include <wx/stattext.h>
class wxStyledTextCtrl;
diff '--color=auto' -ur a/Plugin/DiffUI.h b/Plugin/DiffUI.h
--- a/Plugin/DiffUI.h 2023-01-11 13:18:07.000000000 -0800
+++ b/Plugin/DiffUI.h 2024-10-12 18:01:58.788299095 -0700
@@ -29,6 +29,7 @@
#include <wx/persist/toplevel.h>
#include <wx/persist/treebook.h>
#endif
+#include <wx/frame.h>
#ifdef WXC_FROM_DIP
#undef WXC_FROM_DIP
diff '--color=auto' -ur a/Plugin/dtl/Diff.hpp b/Plugin/dtl/Diff.hpp
--- a/Plugin/dtl/Diff.hpp 2023-01-11 13:18:07.000000000 -0800
+++ b/Plugin/dtl/Diff.hpp 2024-10-12 18:08:01.649783853 -0700
@@ -165,7 +165,7 @@
bool trivialEnabled() const { return trivial; }
- void enableTrivial() const { this->trivial = true; }
+ void enableTrivial() { this->trivial = true; }
void disableTrivial() { this->trivial = false; }
diff '--color=auto' -ur a/Remoty/sample_codelite_remote_json.cpp b/Remoty/sample_codelite_remote_json.cpp
--- a/Remoty/sample_codelite_remote_json.cpp 2023-01-11 13:18:07.000000000 -0800
+++ b/Remoty/sample_codelite_remote_json.cpp 2024-10-12 18:23:18.591278745 -0700
@@ -1,5 +1,6 @@
#ifndef SAMPLE_CODELITE_REMOTE_JSON_HPP
#define SAMPLE_CODELITE_REMOTE_JSON_HPP
+#include <wx/string.h>
const wxString DEFAULT_CODELITE_REMOTE_JSON = R"EOF(
{