Skip to content

Commit

Permalink
Unbroke GCC4 BRect const compatibility.
Browse files Browse the repository at this point in the history
* This can be removed again next time all GCC4 packages are rebuilt for
  whatever reason.
  • Loading branch information
axeld committed Nov 6, 2012
1 parent 5c09b87 commit 1cd0e20
Showing 1 changed file with 59 additions and 1 deletion.
60 changes: 59 additions & 1 deletion src/kits/interface/Rect.cpp
Expand Up @@ -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

0 comments on commit 1cd0e20

Please sign in to comment.