From b2683a0816c4553a63c035e27dd0583a6db8c9ce Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Thu, 21 Dec 2006 16:06:50 +0000 Subject: Fix build with gcc41 --- x11-toolkits/fl_editor/files/patch-FL-wstring.h | 11 +++++++++++ x11-toolkits/fl_editor/files/patch-fltk-Fl_Editor.h | 11 +++++++++++ x11-toolkits/fl_editor/files/patch-fltk-wstring.h | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 x11-toolkits/fl_editor/files/patch-FL-wstring.h create mode 100644 x11-toolkits/fl_editor/files/patch-fltk-Fl_Editor.h create mode 100644 x11-toolkits/fl_editor/files/patch-fltk-wstring.h (limited to 'x11-toolkits/fl_editor') diff --git a/x11-toolkits/fl_editor/files/patch-FL-wstring.h b/x11-toolkits/fl_editor/files/patch-FL-wstring.h new file mode 100644 index 000000000000..10137d494153 --- /dev/null +++ b/x11-toolkits/fl_editor/files/patch-FL-wstring.h @@ -0,0 +1,11 @@ +--- FL/wstring.h.orig Thu Dec 21 16:56:48 2006 ++++ FL/wstring.h Thu Dec 21 16:57:03 2006 +@@ -88,7 +88,7 @@ + long operator>(const char *str) const { return (strcmp(buffer,str) > 0); }; + long operator==(const char *str) const { return (strcmp(buffer,str) == 0); }; + wString& operator=(const char *str) { SSet(str); return (*this); }; +- RCLDLL wString& wString::operator=(const wString& str) { SSet(str.buffer); return (*this); } ++ RCLDLL wString& operator=(const wString& str) { SSet(str.buffer); return (*this); } + wString& operator=(const unsigned char *str) { SSet((const char *)str); return *this; }; + operator const char *() const { return Get(); }; + wString& ToUpper() { strupr(buffer); return *this; }; diff --git a/x11-toolkits/fl_editor/files/patch-fltk-Fl_Editor.h b/x11-toolkits/fl_editor/files/patch-fltk-Fl_Editor.h new file mode 100644 index 000000000000..cca3a5444c79 --- /dev/null +++ b/x11-toolkits/fl_editor/files/patch-fltk-Fl_Editor.h @@ -0,0 +1,11 @@ +--- fltk/Fl_Editor.h.orig Thu Dec 21 16:37:24 2006 ++++ fltk/Fl_Editor.h Thu Dec 21 16:55:36 2006 +@@ -186,7 +186,7 @@ + FL_API long FindRow(short screenY); + FL_API void HandleScroll(); + FL_API void Cut(); +- static FL_API void Fl_Editor::draw_clip(void *v, int X, int Y, int W, int H); ++ static FL_API void draw_clip(void *v, int X, int Y, int W, int H); + FL_API void resize(int x, int y, int w, int h); + #if (FL_MAJOR_VERSION > 1) + void layout(){ Fl_Group::layout(); resize(x(), y(),w(), h()); redraw(); } diff --git a/x11-toolkits/fl_editor/files/patch-fltk-wstring.h b/x11-toolkits/fl_editor/files/patch-fltk-wstring.h new file mode 100644 index 000000000000..9a7de7d66410 --- /dev/null +++ b/x11-toolkits/fl_editor/files/patch-fltk-wstring.h @@ -0,0 +1,11 @@ +--- fltk/wstring.h.orig Thu Dec 21 17:03:29 2006 ++++ fltk/wstring.h Thu Dec 21 17:03:41 2006 +@@ -88,7 +88,7 @@ + long operator>(const char *str) const { return (strcmp(buffer,str) > 0); }; + long operator==(const char *str) const { return (strcmp(buffer,str) == 0); }; + wString& operator=(const char *str) { SSet(str); return (*this); }; +- RCLDLL wString& wString::operator=(const wString& str) { SSet(str.buffer); return (*this); } ++ RCLDLL wString& operator=(const wString& str) { SSet(str.buffer); return (*this); } + wString& operator=(const unsigned char *str) { SSet((const char *)str); return *this; }; + operator const char *() const { return Get(); }; + wString& ToUpper() { strupr(buffer); return *this; }; -- cgit v1.2.3