* Hide the "GCC 2 Hybrid" string since this is the default - only deviations
from the default are shown now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38367 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -512,16 +512,25 @@ AboutView::AboutView()
|
|||||||
// GCC version
|
// GCC version
|
||||||
BEntry gccFourHybrid("/boot/system/lib/gcc2/libstdc++.r4.so");
|
BEntry gccFourHybrid("/boot/system/lib/gcc2/libstdc++.r4.so");
|
||||||
BEntry gccTwoHybrid("/boot/system/lib/gcc4/libsupc++.so");
|
BEntry gccTwoHybrid("/boot/system/lib/gcc4/libsupc++.so");
|
||||||
if (gccFourHybrid.Exists() || gccTwoHybrid.Exists())
|
bool isHybrid = gccFourHybrid.Exists() || gccTwoHybrid.Exists();
|
||||||
|
|
||||||
|
if (isHybrid) {
|
||||||
snprintf(string, sizeof(string), B_TRANSLATE("GCC %d Hybrid"),
|
snprintf(string, sizeof(string), B_TRANSLATE("GCC %d Hybrid"),
|
||||||
__GNUC__);
|
__GNUC__);
|
||||||
else
|
} else
|
||||||
snprintf(string, sizeof(string), "GCC %d", __GNUC__);
|
snprintf(string, sizeof(string), "GCC %d", __GNUC__);
|
||||||
|
|
||||||
BStringView* gccView = new BStringView("gcctext", string);
|
BStringView* gccView = new BStringView("gcctext", string);
|
||||||
gccView->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT,
|
gccView->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT,
|
||||||
B_ALIGN_VERTICAL_UNSET));
|
B_ALIGN_VERTICAL_UNSET));
|
||||||
|
|
||||||
|
#if __GNUC__ == 2
|
||||||
|
if (isHybrid) {
|
||||||
|
// do now show the GCC version if it's the default
|
||||||
|
gccView->Hide();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// CPU count, type and clock speed
|
// CPU count, type and clock speed
|
||||||
char processorLabel[256];
|
char processorLabel[256];
|
||||||
if (systemInfo.cpu_count > 1) {
|
if (systemInfo.cpu_count > 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user