From 05ffb70e8f0c6923aaff8c12dbc14066bd0895e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 22 May 2008 21:00:11 +0000 Subject: [PATCH] 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 --- src/apps/aboutsystem/AboutSystem.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/apps/aboutsystem/AboutSystem.cpp b/src/apps/aboutsystem/AboutSystem.cpp index aabf3e8684..415e39f0ca 100644 --- a/src/apps/aboutsystem/AboutSystem.cpp +++ b/src/apps/aboutsystem/AboutSystem.cpp @@ -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;