Include build date/time and bitness in the About dialog
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4609 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 7b9434f..4c7e212 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -64,6 +64,7 @@
using namespace std;
static char aboutText[1024];
+extern const char* buildTime;
static bool exitMainloop = false;
static const char *exitError = NULL;
@@ -185,7 +186,8 @@
const char* vncServerName = NULL;
UserDialog dlg;
- const char englishAbout[] = N_("TigerVNC Viewer version %s\n"
+ const char englishAbout[] = N_("TigerVNC Viewer %d-bit v%s (%s)\n"
+ "%s\n"
"Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)\n"
"See http://www.tigervnc.org for information on TigerVNC.");
@@ -197,7 +199,8 @@
// Write about text to console, still using normal locale codeset
snprintf(aboutText, sizeof(aboutText),
- gettext(englishAbout), PACKAGE_VERSION);
+ gettext(englishAbout), (int)sizeof(size_t)*8, PACKAGE_VERSION,
+ __BUILD__, buildTime);
fprintf(stderr,"\n%s\n", aboutText);
// Set gettext codeset to what our GUI toolkit uses. Since we are
@@ -208,7 +211,8 @@
// Re-create the aboutText for the GUI, now using GUI codeset
snprintf(aboutText, sizeof(aboutText),
- gettext(englishAbout), PACKAGE_VERSION);
+ gettext(englishAbout), (int)sizeof(size_t)*8, PACKAGE_VERSION,
+ __BUILD__, buildTime);
rfb::initStdIOLoggers();
rfb::LogWriter::setLogParams("*:stderr:30");