diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-02 15:08:20 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-02 15:08:20 +0200 |
commit | 434416c31f5709ae233aa8b421f73da63652e750 (patch) | |
tree | fc3e3eba77736a9f79195aa158663554d104103f /gtk2_ardour/about.cc | |
parent | 93aa8d3734d5165d87034cfae222e492f4f2e7ff (diff) |
show compile-time cpu-arch in about - closes #6548
Diffstat (limited to 'gtk2_ardour/about.cc')
-rw-r--r-- | gtk2_ardour/about.cc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gtk2_ardour/about.cc b/gtk2_ardour/about.cc index 3c8ff3ef05..3e50e24760 100644 --- a/gtk2_ardour/about.cc +++ b/gtk2_ardour/about.cc @@ -588,15 +588,28 @@ About::About () t += ' '; } +#if defined __x86_64__ || defined _M_X64 + const std::string cpu_arch = _("Intel 64 bit"); +#elif defined __i386__ || defined _M_IX86 + const std::string cpu_arch = _("Intel 32 bit"); +#elif defined __ppc__ && defined __LP64__ + const std::string cpu_arch = _("PowerPC 64bit"); +#elif defined __ppc__ + const std::string cpu_arch = _("PowerPC 32bit"); +#elif && defined __LP64__ + const std::string cpu_arch = _("64bit"); +#else + const std::string cpu_arch = _("32bit"); // ARM, ALPHA,.. +#endif set_translator_credits (t); set_copyright (_("Copyright (C) 1999-2015 Paul Davis\n")); set_license (gpl); set_name (X_("Ardour")); set_website (X_("http://ardour.org/")); set_website_label (_("http://ardour.org/")); - set_version ((string_compose(_("%1%2\n(built from revision %3)"), + set_version ((string_compose(_("%1%2\n(built from revision %3)\n%4"), VERSIONSTRING, CODENAME, - revision))); + revision, cpu_arch))); Gtk::Button* config_button = manage (new Button (_("Config"))); |