Patch #2802 2009-07-30 20:42
techy
Workaround to make CodeBlocks compile with gcc 3.3.3- Download
- 2802-Workaround_to.patch (678 bytes)
Index: src/sdk/wxscintilla/src/ScintillaWX.cpp
===================================================================
--- src/sdk/wxscintilla/src/ScintillaWX.cpp (revision 5716)
+++ src/sdk/wxscintilla/src/ScintillaWX.cpp (working copy)
@@ -511,7 +511,8 @@
if (wxTheClipboard->Open()) {
wxTheClipboard->UsePrimarySelection(false);
- wxCustomDataObject selData(wxDataFormat(wxString(wxT("application/x-cbrectdata"))));
+ wxDataFormat dataFormat(wxString(wxT("application/x-cbrectdata")));
+ wxCustomDataObject selData(dataFormat);
bool gotRectData = wxTheClipboard->GetData(selData);
if (gotRectData && selData.GetSize()>1) {
History
techy 2009-07-30 20:47
These two lines are clearly the same as the the original one line but for some mysterious reason gcc 3.3.3 doesn't like the original one. Because in industry many people (like us) are doomed to using old linux distributions, I think it's a good idea to apply this workaround. Otherwise there is no problem with the compilation (at least under SUSE 8.2 and SLES 9).
mortenmacfly 2010-01-25 19:12
Submitted to trunk, scintilla branch is no longer active (was merged into trunk).