Add compiler version to AboutSystem so newbs can identify if an image is built with gcc4 or gcc2.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25619 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-05-22 21:00:11 +00:00
parent fc0c84e771
commit 05ffb70e8f

View File

@ -237,6 +237,20 @@ AboutView::AboutView(const BRect &rect)
fInfoView->AddChild(stringView);
stringView->ResizeToPreferred();
// GCC version
r.OffsetBy(0, textHeight);
r.bottom = r.top + textHeight;
strlcpy(string, "Compiler version: ", sizeof(string));
#ifdef __GNUC__
strlcat(string, "GCC ", sizeof(string));
#endif
strlcat(string, __VERSION__, sizeof(string));
stringView = new BStringView(r, "gcctext", string);
fInfoView->AddChild(stringView);
stringView->ResizeToPreferred();
// CPU count, type and clock speed
r.OffsetBy(0, textHeight * 1.5);
r.bottom = r.top + labelHeight;