File fix_compilation_JSON_wxWidgets.patch of Package codelite
diff -ruN a/CodeLite/JSON.cpp b/CodeLite/JSON.cpp
--- a/CodeLite/JSON.cpp 2021-02-01 02:49:48.000000000 +0700
+++ b/CodeLite/JSON.cpp 2021-03-07 00:44:37.366114925 +0700
@@ -432,11 +432,7 @@
JSONItem& JSONItem::addProperty(const wxString& name, const wxChar* value)
{
-#if wxVERSION_NUMBER >= 2900 && wxVERSION_NUMBER < 3104
append(JSONItem(name, wxString(value).c_str(), cJSON_String));
-#else
- append(JSONItem(name, wxString(value), cJSON_String));
-#endif
return *this;
}
@@ -456,11 +452,7 @@
return *this;
}
-#if wxVERSION_NUMBER >= 2900 && wxVERSION_NUMBER < 3104
void JSONItem::arrayAppend(const wxString& value) { arrayAppend(JSONItem(wxT(""), value.c_str(), cJSON_String)); }
-#else
-void JSONItem::arrayAppend(const wxString& value) { arrayAppend(JSONItem(wxT(""), value, cJSON_String)); }
-#endif
wxArrayString JSONItem::toArrayString(const wxArrayString& defaultValue) const
{