hrev44785 adds 1 changeset to branch 'master' old head: 5c09b872a624abda70ce52014a142fbe98b17b0e new head: 1cd0e20c569e8887701162691f9bdf922c04676f ---------------------------------------------------------------------------- 1cd0e20: Unbroke GCC4 BRect const compatibility. * This can be removed again next time all GCC4 packages are rebuilt for whatever reason. [ Axel DÃrfler <axeld@xxxxxxxxxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev44785 Commit: 1cd0e20c569e8887701162691f9bdf922c04676f URL: http://cgit.haiku-os.org/haiku/commit/?id=1cd0e20 Author: Axel DÃrfler <axeld@xxxxxxxxxxxxxxxx> Date: Tue Nov 6 19:54:34 2012 UTC ---------------------------------------------------------------------------- 1 file changed, 59 insertions(+), 1 deletion(-) src/kits/interface/Rect.cpp | 60 ++++++++++++++++++++++++++++++++++++++++- ---------------------------------------------------------------------------- diff --git a/src/kits/interface/Rect.cpp b/src/kits/interface/Rect.cpp index 20b5130..d8d66d8 100644 --- a/src/kits/interface/Rect.cpp +++ b/src/kits/interface/Rect.cpp @@ -328,4 +328,62 @@ OffsetToCopy__5BRectff(BRect* self, float dx, float dy) } -#endif // __GNUC__ == 2 +#elif __GNUC__ == 4 +// TODO: remove this when new GCC 4 packages have to be built anyway + + +extern "C" BRect +_ZN5BRect11InsetByCopyE6BPoint(BRect* self, BPoint point) +{ + BRect copy(*self); + copy.InsetBy(point); + return copy; +} + + +extern "C" BRect +_ZN5BRect11InsetByCopyEff(BRect* self, float dx, float dy) +{ + BRect copy(*self); + copy.InsetBy(dx, dy); + return copy; +} + + +extern "C" BRect +_ZN5BRect12OffsetByCopyE6BPoint(BRect* self, BPoint point) +{ + BRect copy(*self); + copy.OffsetBy(point); + return copy; +} + + +extern "C" BRect +_ZN5BRect12OffsetByCopyEff(BRect* self, float dx, float dy) +{ + BRect copy(*self); + copy.OffsetBy(dx, dy); + return copy; +} + + +extern "C" BRect +_ZN5BRect12OffsetToCopyE6BPoint(BRect* self, BPoint point) +{ + BRect copy(*self); + copy.OffsetTo(point); + return copy; +} + + +extern "C" BRect +_ZN5BRect12OffsetToCopyEff(BRect* self, float dx, float dy) +{ + BRect copy(*self); + copy.OffsetTo(dx, dy); + return copy; +} + + +#endif // __GNUC__ == 4