diff options
author | arved <arved@FreeBSD.org> | 2006-12-22 00:06:50 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2006-12-22 00:06:50 +0800 |
commit | d31df7648ad3562fe25dee7f0b8b994092dcfbcf (patch) | |
tree | 691f7692d386be60b87a5e4e32ee9eda7bd35243 /x11-toolkits | |
parent | d95da34d5bd7448f71e57dcff6875e558be6b95b (diff) | |
download | freebsd-ports-gnome-d31df7648ad3562fe25dee7f0b8b994092dcfbcf.tar.gz freebsd-ports-gnome-d31df7648ad3562fe25dee7f0b8b994092dcfbcf.tar.zst freebsd-ports-gnome-d31df7648ad3562fe25dee7f0b8b994092dcfbcf.zip |
Fix build with gcc41
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/fl_editor/files/patch-FL-wstring.h | 11 | ||||
-rw-r--r-- | x11-toolkits/fl_editor/files/patch-fltk-Fl_Editor.h | 11 | ||||
-rw-r--r-- | x11-toolkits/fl_editor/files/patch-fltk-wstring.h | 11 |
3 files changed, 33 insertions, 0 deletions
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; };
|